[R] String manipulation

Robin Gruna robin_gruna at hotmail.com
Fri Jun 25 11:07:42 CEST 2004

let's see, if someone can help my with this one:
I have the string as follows:
> str<-("one","two","three")

Now I want to concatenate the items to one string, seperateted by space or
something else,
>"one, two, three"
If possible without a loop.

My actual goal ist to create string like
>"female = names1, male = names2"
and pass it as argument to list(), intending to create a list
>names.list<-list( female = names1, male = names2)

Thanks a lot,

More information about the R-help mailing list