R - Object Memory Size

> Procedural Languages > R

1 - pryr

diamonds <- ggplot2::diamonds
pryr::object_size(diamonds)
#> 3.46 MB
 
diamonds2 <- transform(diamonds, price_per_carat = price / carat)
pryr::object_size(diamonds2)
#> 3.89 MB
 
# Size of both data frames combined
pryr::object_size(diamonds, diamonds2)
#> 3.89 MB

2 - Documentation / Reference

lang/r/size.txt · Last modified: 2017/02/12 21:02 by gerardnico