Re: [R] quiry on paste() function

2010-10-29 Thread Jan van der Laan
Perhaps, the following construct does what you need: paste(c("a", "b", "c"), c(",", ":", ""), sep="",collapse="") Regards, Jan On 29-10-2010 10:49, Ron Michael wrote: Hi all, I want to club different objects (character type) to a single one and using paste() function that can be done happil

Re: [R] quiry on paste() function

2010-10-29 Thread Gabor Grothendieck
On Fri, Oct 29, 2010 at 4:49 AM, Ron Michael wrote: > Hi all, I want to club different objects (character type) to a single one and > using paste() function that can be done happily. However the problem with > paste function is the separator field is unique for all underlying objects. > If I pu

Re: [R] quiry on paste() function

2010-10-29 Thread Jan van der Laan
Perhaps the following construct does what you need: paste(c("a", "b", "c"), c(",", ":", ""), sep="",collapse="") Regards, Jan On 29-10-2010 10:49, Ron Michael wrote: > Hi all, I want to club different objects (character type) to a single one and > using paste() function that can be done happ

Re: [R] quiry on paste() function

2010-10-29 Thread Ivan Calandra
Hi, It would be interesting to have such behavior, but I think you would then need to specify every separator, for example like this: paste("a", "b", "c", sep=c(",", ",", ":")) Otherwise, R cannot know where to put each separator. So at the end, it's not much different from several paste() cal

[R] quiry on paste() function

2010-10-29 Thread Ron Michael
Hi all, I want to club different objects (character type) to a single one and using paste() function that can be done happily. However the problem with paste function is the separator field is unique for all underlying objects. If I put separator as "-" then this will come in between all underly