[R] How can i select a set of element in a list ?
Julian TszKin Chan
cjulian at bu.edu
Wed Dec 8 23:38:52 CET 2010
How can i select a set of element in a list ?
How can I create a new list which only have the last 4 elements of x.
I can do it with a loop, but I want to avoid that. Thanks!
for ( i in 1:length(y) )
y[[i]] <- x[[ i + length(x) - length(y) ]]
More information about the R-help