Thanks a lot, it works!

On May 23, 3:10 pm, Erik Iverson <[email protected]> wrote:
> > "[" is a function, and you want to use it on each element of the list,
> > so...
>
> > lapply(x, "[", c(1:7))
>
> and the call to c() is of course not necessary, since ":" will generate a 
> vector.
>
> ______________________________________________
> [email protected] mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "R-help-archive" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/r-help-archive?hl=en.

______________________________________________
[email protected] 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