[R] rbinom for a matrix

ACroske Audy3272 at yahoo.com
Wed Jul 9 19:30:25 CEST 2008


I have a large matrix full of probabilities; I would like to convert each
probability to a 1 or a 0 using rbinom.
How can I do this on the entire matrix? The matrix was converted from a
raster ArcMap dataset, so the matrix is essentially a map. Because of this,
I have no column headings.
Thanks! 
-- 
View this message in context: http://www.nabble.com/rbinom-for-a-matrix-tp18366867p18366867.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list