A wrapper for object.size that prints in Mb by default

object_size(x, units = "Mb")

Arguments

x

an R object

units

the units to be used in printing the size

Value

Returns a character with the object size followed by the unit.