lso
lists object sizes and types.
lso( pos = 1, pattern, order.by = "Size", decreasing = TRUE, head = TRUE, n = 10 )
pos | a number specifying the environment as a position in the search list. |
---|---|
pattern | an optional regular expression. Only names matching pattern are returned. glob2rx can be used to convert wildcard patterns to regular expressions. |
order.by | column to sort the list by. Values are |
decreasing | logical. If |
head | logical. Should output be limited to |
n | if |
a data.frame with four columns (Type, Size, Rows, Columns) and object names as row names.
This function list the sizes and types of all objects in an environment. By default, the list describes the objects in the current environment, presented in descending order by object size and reported in megabytes (Mb).
http://stackoverflow.com/questions/1189759/expert-r-users-whats-in-your-rprofile.
Based on based on postings by Petr Pikal and David Hinds to the r-help list in 2004 and modified Dirk Eddelbuettel, Patrick McCann, and Rob Kabacoff.
#> Type Size_Mb Rows Columns #> cardata data.frame 0.843056 11914 16 #> heart data.frame 0.025320 303 14 #> cars74 data.frame 0.009856 32 12