Description Usage Arguments Value Author(s) See Also Examples
An improved base::ls
function to list
(and optionally sort) the largest objects in the workspace.
1 |
... |
Arguments passed to the (internal) helper function,
|
n |
A single integer. If positive, the number of rows of the returned object. If negative, all but the n last/first number of rows of the object are returned. |
A base::data.frame
containing the objects' names,
types, sizes, 'pretty' sizes, number of rows, and number of columns. If the
object is list-like (e.g., an S4 object), then the 'number of rows' is given
by the base::length
of the object and the 'number of
columns' is set to NA
.
Based on Dirk Eddelbuetal's post to Stack Overflow (http://stackoverflow.com/q/1358003) in which he in turn credits Petr Pikal and David Hinds from the r-help mailing list circa 2004.
The function wraps the output of base::ls
and
pryr::object_size
into a pretty format.
1 2 3 4 | ## Not run:
lsos()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.