getmem | R Documentation |
Get a member of a list
getmem(v, mem = 1)
v |
vector |
mem |
element in vector |
Used in conjunction with apply
vector of members of a list
Jonathan M. Lees<jonathan.lees@unc.edu>
z = list()
for(i in 1:10)
{
z[[i]] = round(10*runif(10))
}
y = as.vector(unlist(lapply(z, getmem, 6)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.