search for: tp2550280p2550315

Displaying 1 result from an estimated 1 matches for "tp2550280p2550315".

2010 Sep 22
3
merge verctor and matrix
hi, can anyone tell me how to merge a vector and a matrix? > v=c(1,4,2) > names(v)=c("e","r","t") > m=matrix(c("r","t","r","s","e",5,6,7,8,9),nr=5) > colnames(m)=c("c1","c2") I want to do like merge(v, m, by.x="names",by.y="c1") I got error Error in fix.by(by.x, x) :