Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sillasgonzaga's full-sized avatar

Sillas Teixeira Gonzaga sillasgonzaga

View GitHub Profile
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