[R] Help for string opeation

Pascal Oettli kridox at ymail.com
Fri Jun 29 09:16:36 CEST 2012


Hello,

Does 'unlist' function do what you are asking about?

Regards.


Le 29/06/2012 11:52, Takatsugu Kobayashi a écrit :
> Hi R users,
>
> I appreciate if you could give me some hint/help on this string operation.
>
> Suppose I have a list of string objects in varying sizes like
>
> [[1]]
> [1] "A" [2] "B" [3] "C"
>
> [[2]]
> [1] "D" [2] "E"
>
> [[3]]
> [1] "F"
>
> Then I would like to create a vector that contains all elements like
>
> [1] "A" "B" "C" "D" "E" "F"
>
> I tried do.call + rbind but no luck yet.
>
> Is there a function to do this operation or should I use append in the loop?
>
> Thanks in advance!
>
> Taka
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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