search for: tp3818415p3818415

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

2011 Sep 16
3
How to save row values from a matrix into one vector?
...do this with a for loop. op <- vector() for (o in 1:3){ op[o] <- as.vector(test.id[o,]) } The results should be like this: [1] 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 thanks! -- View this message in context: http://r.789695.n4.nabble.com/How-to-save-row-values-from-a-matrix-into-one-vector-tp3818415p3818415.html Sent from the R help mailing list archive at Nabble.com.