On 7/23/07, Dimitris Rizopoulos <[EMAIL PROTECTED]> wrote:
> try this:
>
> new.list <- lapply(my.list, "[", i = 1:2)
> new.list

You could use the lapply above or

   lapply(my.list, head, 2)

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to