Reputation: 762
I would like to convert value stored as a list into a single string.
list
For example:
l <- list(1,2,3,4)
would give:
"1234"
and not as using the output of unlist():
unlist()
unlist(l) #[1] "1" "2" "3" "4"
Upvotes: 19
Views: 50682
Reputation: 8044
paste( unlist(l), collapse='')
Upvotes: 37