[R] applying cbind (or any function) across all components in a list

Greg Snow 538280 at gmail.com
Thu May 24 17:16:50 CEST 2012


The "do.call" function may be what you want, but it is not completely
clear.  If that does not solve your problem then try giving us an
example of what your list looks like (the dput function can help) and
what you want your end result to look like.

On Thu, May 24, 2012 at 5:38 AM, Hans Thompson <hans.thompson1 at gmail.com> wrote:
> The combination of column means in cbind is what I am trying to do.  I just
> don't know how to do it for every component (2 in this case) of the list.
> I've been able to work with R to apply a function across all components when
> there is just one list but I am having trouble working with multiple lists
> at the same time.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/applying-cbind-or-any-function-across-all-components-in-a-list-tp4631128p4631187.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.



-- 
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com



More information about the R-help mailing list