r concatenate string code example
Example 1: r print concatenate
paste("on the ", counter, "rd count: ", k, sep="")
Example 2: r combine strings
> paste("Hello", "world", sep=" ")
[1] "Hello world"
Example 3: truncate string in r
library(stringr)
str_sub('', 1, 3)