How to merge elements of vectors in new vector in R -
How to merge elements of vectors in new vector in R -
i want extract elements of each vector , new vector attached elements
x<-c(1,2,3,4) y<-c(w,w,w,w) z<-c(1,2,3,4)
expected result
xyz<-c(1w1,2w2,3w3,4w4)
thank
also,
as.character(interaction(x,y,z,sep="")) #[1] "1w1" "2w2" "3w3" "4w4"
r
Comments
Post a Comment