Apparently 'object.size' function accepting only one argument(i.e., object), but not 'units' or any other arguments. How can I tackle it?
here is what happens if I try it anyway:
object.size(averageBySubAct, units = "Mb")
Error in object.size(averageBySubAct, units = "Mb") :
unused argument (units = "Mb")
?object.size
this gives
object.size(x)
## S3 method for class 'object_size'
format(x, units = "b", ...)
## S3 method for class 'object_size'
print(x, quote = FALSE, units = "b", ...)
notice that object.size()
takes one argument, x
. However, we can print the result of object.size(x)
and then use the units
argument (as mentioned in the comments)
print(object.size(c(5,6,1)), units="Mb")
# 0 Mb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With