Skip to content
Back to formatted view

Raw Message

Message-ID: <BF274123.C7C9%sdavis2@mail.nih.gov>
Date: 2005-08-16T11:07:15Z
From: Sean Davis
Subject: How to merge two strings
In-Reply-To: <1124190100.3446.4.camel@KT396>

On 8/16/05 7:01 AM, "Claus Hindsgaul" <claush at 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