Just a toy to list the number of elements or optionally the bytesize as produced with
object.size of a specified selection of objects. I find it handy when I want to rid an environment of large (or empty) objects. In the default case,
byte=FALSE , lists and S4 objects are "taken apart" down to the lowest level so all individual elements are counted.
A vector of character strings identifying the objects of interest as would be returned by, e.g.
If TRUE, calculate the number of bytes taken up by an object. If FALSE, calculate the total number of elements of an object.
A vector of the object sizes, with the object names as names for the elements
Carl Witthoft, [email protected]
Many thanks to Martin Morgan of bioconductor.org who provided the recursive function for deconstructing an S4 Object. See http://stackoverflow.com/questions/14803237/is-there-an-s4-equivalent-to-unlist for the original question and answer.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.