string concatenation r code example
Example 1: r combine strings
> paste("Hello", "world", sep=" ")
[1] "Hello world"
Example 2: truncate string in r
library(stringr)
str_sub('', 1, 3)
> paste("Hello", "world", sep=" ")
[1] "Hello world"
library(stringr)
str_sub('', 1, 3)