[R] How to merge two strings

Claus Hindsgaul claush at mek.dtu.dk
Tue Aug 16 13:01:39 CEST 2005


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"
>

Claus

-- 
Ph.D. Student Claus Hindsgaul
CHEC, Dept. Chemical Eng. (KT), DTU
and Biomass Gasification Group, Dept. Mechanical Eng. (MEK), DTU
DTU Building 229 room 154, Phone +45 4525 2838
http://bgg.mek.dtu.dk/ and http://www.kt.dtu.dk/




More information about the R-help mailing list