[R] How to make a vector with string elements without space

Vahid Borji v@h|d@borj|65 @end|ng |rom gm@||@com
Sat May 23 14:25:54 CEST 2020


Hello my r friends,
I want to make a vector with elements (c1,c2,...,c10).
I wrote the below code:
c(paste("c",1:10))
My code works but it gives me elements like "c 1", "c 2" to "c 10". I mean
there is a space between each c and its corresponding number. I want the
elements of the vector to be like "c1", "c2", to "c10"  (without space
between c and number). How can I fix this problem in my code?

	[[alternative HTML version deleted]]



More information about the R-help mailing list