[R] random selection of elements from a matrix

anaraster rrasterr at gmail.com
Thu Jul 14 22:35:18 CEST 2011


ups...already found the solution

matrix2 <- matrix1[sample(samplenumber,replace=F),]

--
View this message in context: http://r.789695.n4.nabble.com/random-selection-of-elements-from-a-matrix-tp3668574p3668594.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list