strcat(s1, s2 = NULL, collapse = "")
s1
, if s2
is
NULL
, or cross-concatenate all string elements in s1
and
s2
using collapse
as `glue'.paste
strcat(c("a", "b", "c")) #=> "abc"
strcat(c("a", "b"), c("1", "2"), collapse="x") #=> "ax1" "ax2" "bx1" "bx2"
Run the code above in your browser using DataLab