memory_hogs | R Documentation |
List objects in an R environment by size.
memory_hogs(
unit = c("b", "Kb", "Mb", "Gb", "Tb", "Pb"),
return_numeric = TRUE,
...,
envir = parent.frame()
)
unit |
The unit to use. |
return_numeric |
Return a numeric vector? If set to
|
... |
Arguments passed to |
envir |
The environment where to look for objects. |
A named vector of memory usages.
Other R memory functions:
wipe_clean()
,
wipe_tempdir()
va <- rep(mtcars, 1)
vb <- rep(mtcars, 1000)
vc <- rep(mtcars, 2000)
vd <- rep(mtcars, 100)
memory_hogs()
memory_hogs(unit = "Mb", decreasing = TRUE)
memory_hogs(unit = "Mb", decreasing = TRUE, return_numeric = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.