Get object size in unit

obj_size(obj, unit = "Mb")

obj.size(obj, unit = "Mb")

Arguments

obj

Object

unit

"Kb", "Mb" or "Gb"

Examples

obj_size(1:100)
#> 0 Mb