Jul 7, 2008

How big are my R objects?

I took me some time to find the function that provides the memory an R object uses: object.size()

The function lsiz will show you the size of each object in an environment :


> lsiz(4)

Table 28584
qqpval 6052


The numbers show the object's size in bites.

No comments: