Size of an object

size(
  x,
  level1 = FALSE,
  units = "auto",
  sort = TRUE,
  decreasing = FALSE,
  byteTol = 0,
  asNumeric = FALSE
)

Arguments

x

- any R object

Value

Examples

size(1)
#> [1] "56 bytes"
size(rep(1, 1e3))
#> [1] "7.9 Kb"
size(rep(1L, 1e3))
#> [1] "4 Kb"