Sunday 31 December 2017

r - How can two strings be concatenated?

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




tmp =
cbind("GAD", "AB")
tmp
# [,1] [,2]
# [1,] "GAD"
"AB"


My goal is to
concatenate the two values in "tmp" to one string:



tmp_new =
"GAD,AB"



Which
function can do this for me?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...