How can two strings be concatenated?

前端 未结 12 1923
时光说笑
时光说笑 2020-11-22 16:14

How can I concatenate (merge, combine) two values? For example I have:

tmp = cbind(\"GAD\", \"AB\")
tmp
#      [,1]  [,2]
# [1,] \"GAD\" \"AB\"
12条回答
  •  鱼传尺愫
    2020-11-22 16:19

    Another non-paste answer:

    x <- capture.output(cat(data, sep = ","))
    x
    [1] "GAD,AB"
    

    Where

     data <- c("GAD", "AB")
    

提交回复
热议问题