powered by
Get a member of a list
getmem(v, mem = 1)
vector
element in vector
vector of members of a list
Used in conjunction with apply
# NOT RUN { z = list() for(i in 1:10) { z[[i]] = round(10*runif(10)) } y = as.vector(unlist(lapply(z, getmem, 6))) # }
Run the code above in your browser using DataLab