.ls.objects | R Documentation |
lsos()
and ls.objects()
are like ls()
in that they list
the objects in a given environment. But they provide more detail: they show
the class of each object, the amount of memory devoted to each objects, and
the number of rows or columns of each object (if applicable).
.ls.objects( pos = 1, envir = as.environment(pos), pattern, order.by, decreasing = FALSE, MB = MB, n = NULL ) lsos(..., MB = TRUE, n = 8)
pos |
Numeric. Specifies the position, in the search list, of the
environment to search. Can be specified instead of |
envir |
Environment to search. Can be specified instead of |
pattern |
String. An optional regular expression; if it is specified, only objects whose names match the regular expression will be returned. |
order.by |
String, with value "Class", "Size", "Rows", or "Columns." The returned data frame will be sorted by the specified column. |
decreasing |
Logical variable. Should results be listed in decreasing
order of the |
MB |
Logical. If |
n |
Numeric. Number of objects to list. In |
... |
Additional arguments to |
lsos()
is a user-friendly wrapper for .ls.objects()
. It is
shorthand for .ls.objects(order.by="Size", decreasing=TRUE, head=TRUE, n=8)
.
Both functions were created by Dirk Edelbuettel and modified by JD Long and John Bullock. See http://stackoverflow.com/questions/1358003/ for details.
Data frame with columns "Class," "Size," "Row," and "Columns." The row names of the data frame are the names of objects in the environment.
Both functions were created by Dirk Edelbuettel and modified by JD Long and John Bullock. See http://stackoverflow.com/questions/1358003/ for details.
lsos() lsos(pattern = '\\.df$') # list only objects ending in ".df"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.