Re: [R] How to merge two strings

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Tue 16 Aug 2005 - 21:07:15 EST


On 8/16/05 7:01 AM, "Claus Hindsgaul" <claush@mek.dtu.dk> wrote:

> Hi r-help,
>
> A very simple question for which I have not been able to find an answer
> in the docs:
>
> How can I merge two character strings?
>
> I am searching for the equivalent of the (non-existing) stringmerge
> function illustrated below:
>

>> s1 <- "R-"
>> s2 <- "project"
>> stringmerge(s1,s2)

> [1] "R-project"

See ?paste.

Sean



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Aug 16 21:14:03 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:23:06 EST