[R] Bind field of a list

baptiste auguie baptiste.auguie at googlemail.com
Fri Feb 19 15:54:34 CET 2010


Hi,

Try this,

unlist(test)

or

do.call(c, test)

HTH,

baptiste

On 19 February 2010 15:19, statquant <colin.umansky at barcap.com> wrote:
>
> Hello all
> I am new in R and so easy stuff are difficult...
> let say that I have a list
> test <- list(a=c("x","v"),b=c("n","m"))
> how can I without a loop get test$a bind with test$b (obviously in real life
> their would be many fields)
>
> Cheers and thanks
> --
> View this message in context: http://n4.nabble.com/Bind-field-of-a-list-tp1561676p1561676.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