[R] extracting a subset of sublists form a list; vectorized form

Claudia Beleites cbeleites at units.it
Wed Oct 8 19:58:41 CEST 2008


Dear Javier,

> sublists, to be passed to a function, sintaxis like this won't work:
> 
>> sublist <- main.lst[[1:4]]
are you looking for:
sublist <- main.lst[1:4]

HTH
Claudia



More information about the R-help mailing list