I have a numeric vector, one, which I'm trying to turn into a character vector where
each element is separated by commas.
> one = c(1:5)
> paste(as.character(one), collapse=", ")
[1] "1, 2, 3, 4, 5"
> paste(as.character(one), sep="' '", collapse=", ")
[1] "1, 2, 3, 4, 5"
However, I want the output to look like:
"1", "2", "3", "4", "5"
Am I missing some parameter from the paste function?
Help!?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…