[R] Combind two different vector

Georg Ruß
Sat, 27 Nov 2010 17:37:56 -0000

On 27/11/10 16:04:35, Serdar Akin wrote:
> I'm trying two combine two vectors that have different lengths. This
without
> recursive the shorter one. E.g.,
>
> a <- seq(1:3)
> b <- seq(1:6)

If that means your output should be (1 2 3 1 2 3 4 5 6) then
c <- c(a,b) should solve this. Looks like _the_ basic vector
operation.

Georg.
--
Research Assistant
Otto-von-Guericke-Universit?t Magdeburg
research at georgruss.de