Message-ID: <1347627269256-4643139.post@n4.nabble.com>
Date: 2012-09-14T12:54:29Z
From: Özgür Asar
Subject: concatenating two vectors
Dear all,
I want to concatenate the elements of two vectors such as
a<-c("a1","a2")
b<-c("b1","b2")
and obtain
"a1b1", "a1b2","a2b1","a2b2"
I tried the paste and paste0 functions, but they yielded elementwise
concatenation such as
"a1b1","a2b2"
I am wondering that is there an efficient way of doing my wish, for instance
without using for loop etc.
Best
Ozgur
--
View this message in context: http://r.789695.n4.nabble.com/concatenating-two-vectors-tp4643139.html
Sent from the R help mailing list archive at Nabble.com.