I try to append chars, but i always get a gap between them

I try to append chars, but i always get a gap between them.

Instead of: "ab" i get "a b" for example.

I tried: append and paste.

Answers


paste("a", "b")
[1] "a b"
paste("a", "b", sep="")
[1] "ab"    
paste0("a", "b")
[1] "ab"

use collapse=""

paste(c("a", "b"), collapse="")
# [1] "ab"

or paste0:

paste0("a", "b")
# [1] "ab"

(which is short for paste("a", "b", sep=""))

Another option would be sprintf:

sprintf("%s%s", "a", "b")
# [1] "ab"

Need Your Help

Why use serialization

c# asp.net serialization

I've seen couple of examples with serializable attribute like this: