ls.size | R Documentation |
Produces a named array giving the size, in bytes, of the elements of a list.
ls.size(x)
x |
A list. |
A numeric vector giving the size in bytes of each element of the list x
. The elements of the array have the
same names as the elements of the list. If x
is not a list then its size in bytes is returned, un-named.
Simon N. Wood simon.wood@r-project.org
https://www.maths.ed.ac.uk/~swood34/
library(mgcv)
b <- list(M=matrix(runif(100),10,10),quote=
"The world is ruled by idiots because only an idiot would want to rule the world.",
fam=binomial())
ls.size(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.