Re: [R] How to merge two strings

From: Claus Hindsgaul <claush_at_mek.dtu.dk>
Date: Tue 16 Aug 2005 - 21:31:55 EST

Thank you all!
Paste() was just the function I needed to know!

Claus

tir, 16 08 2005 kl. 13:06 +0200, skrev Dimitris Rizopoulos:
> look at ?paste(), e.g.,
>
> s1 <- "R-"
> s2 <- "project"
> paste(s1, s2, sep = "")
>
>
> Best,
> Dimitris
>
> ----
> Dimitris Rizopoulos
> Ph.D. Student
> Biostatistical Centre
> School of Public Health
> Catholic University of Leuven
>
> Address: Kapucijnenvoer 35, Leuven, Belgium
> Tel: +32/16/336899
> Fax: +32/16/337015
> Web: http://www.med.kuleuven.be/biostat/
> http://www.student.kuleuven.be/~m0390867/dimitris.htm
>
>
> ----- Original Message -----
> From: "Claus Hindsgaul" <claush@mek.dtu.dk>
> To: <r-help@stat.math.ethz.ch>
> Sent: Tuesday, August 16, 2005 1:01 PM
> Subject: [R] How to merge two strings
>
>
> > 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/
> >
> > ______________________________________________
> > 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
> >
>

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

______________________________________________
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:36:05 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:49 EST