hi, I want to append a string to a string like; x <- c("abc") append(x, "def") so that I get for x: [1] "abcdef" not (!) [1] "abc" "def" How can I do that in R?
?paste On Dec 16, 2008, at 10:39 PM, J?rg Gro? wrote:> hi, > > > I want to append a string to a string like; > > x <- c("abc") > append(x, "def") > > > so that I get for x: > > [1] "abcdef" > > > not (!) > [1] "abc" "def" > > > How can I do that in R? > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
On Wed, Dec 17, 2008 at 9:09 AM, J?rg Gro? <joerg at licht-malerei.de> wrote:> hi, > > > I want to append a string to a string like; > > x <- c("abc") > append(x, "def")paste (x, "def", sep="") see ?paste HTH Aval