[R] Automate concatenation?
Robert Lundqvist
Robert.Lundqvist at ltu.se
Tue May 30 14:07:45 CEST 2006
I have this typical problem of joining a number of vectors with similar
names - a1, a2,..., a10 - which should be concatenated into one. Using
c(a1,a2,a3,a4,a5,a6,a,a8,a9,a10) naturally works, but I would like to do
it with less manual input. My attempts to use paste() gives a vector of
the vector names, see below. The question is how to do the the
concatenation? Any suggestions?
paste("a",1:10,sep="")
Robert
More information about the R-help
mailing list