View source: R/show_environment.R
show_environment | R Documentation |
Show memory use
show_environment(
what = NULL,
sort = "size",
units = "Mb",
decreasing = TRUE,
n = NULL
)
what |
List with objects to show object size. If |
sort |
Sort the resulting dataframe either by "size", "name". |
units |
Unit used to format memory usage. For more details, see |
decreasing |
Logical if results should be sorted in decreasing order. |
n |
Number of top rows to print. |
Functions returns the name, class and size of all objects in the environment. The resulting data frame can be sorted by different arguments.
data.frame
object.size
vec <- 1:100
vec_2 <- runif(n = 10)
df <- data.frame(1:5000)
mat <- matrix(c(1:100), ncol = 20, nrow = 5)
list <- list(x = vec, y = df, z = mat)
show_environment()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.