[R] Newbie Question on making subsets for every element of a table column

R. Michael Weylandt michael.weylandt at gmail.com
Mon Apr 23 23:48:39 CEST 2012


There are, but it's generally considered better style to keep them all
in a single list and use lapply() if you want to do things to each
element.

Michael

On Mon, Apr 23, 2012 at 5:33 PM, cyclondude <hans.thompson1 at gmail.com> wrote:
> Yes. That is what I was looking for.  Is there a simple way to (in this
> scenario)
>
>
>> out[[1]]
>
>    v1 v2
>  1  a  1
>  4  a  2
>  7  a  3
>
>> a <- out[[1]]
>
> for each one?
>
> Thanks!
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Newbie-Question-on-making-subsets-for-every-element-of-a-table-column-tp4581228p4581775.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list