I have a binary matrix that represents a map of invasive species risk (1 =
infested; 0 = uninfested). It started as a matrix of probabilities
(developed in ArcMap) that I converted to binary with this R code:
binary.matrix<-matrix(rbinom(length(prob.matrix),prob=prob.matrix,size=1),nrow=nrow(prob.
How do I use the buffer function since I have more than the two columns it
calls for? (I have 46!)
--
View this message in context:
http://www.nabble.com/%22Spreading-risk%22-in-a-matrix-tp18535227p18537082.html
Sent from the R help mailing list archive at Nabble.com.
Hello,
I am attempting to run a bootstrap on a data frame, but something is going
wrong.
I have 2 data frames:
AB
V1 V2 V3V1 V2 V3
1 1471 10 13 16
2 2582 11 14 17
3 3693 12 15 18
Over each
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!
ows in the matrix is 56.
There are 2576 total cells (observations). Each cell has its own
probability.
Thanks for your help!
Ben Bolker wrote:
>
> ACroske yahoo.com> writes:
>
>>
>>
>> I have a large matrix full of probabilities; I would like to convert each
&
PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Dylan Beaudette wrote:
> | On Wednesday 09 July 2008, Ben Bolker wrote:
> |> ACroske yahoo.com> writes:
> |>> I have a large matrix full of probabilities; I would like to convert
> each
> |>> probability to a 1 or a
6 matches
Mail list logo