Skip to content

append string to a string

3 messages · Jörg Groß, David Winsemius, Aval Sarri

#
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:

            
#
On Wed, Dec 17, 2008 at 9:09 AM, J?rg Gro? <joerg at licht-malerei.de> wrote:
paste (x, "def", sep="")

see ?paste

HTH
Aval