I would like to store this output in a string:
> x=1:5
> cat("hi",x)
hi 1 2 3 4 5
So I use paste
, but I obtain this different result:
> paste("hi",x)
[1] "hi 1" "hi 2" "hi 3" "hi 4" "hi 5"
Any idea how to obtain the string:
"hi 1 2 3 4 5"
Thank you very much!