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
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
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
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
4 matches
Mail list logo