Description Usage Arguments Value Author(s) References Examples
This function is used by Gotelli's matrix randomization functions. It takes an input binary vector and a weight vector of equal length and reassigns 1s randomly in proportion to the weights.
1 | VectorSample(v, w)
|
v |
A binary vector |
w |
A vector of sampling weights; length equal to length of v. |
A randomized binary vector.
Nicholas J. Gotelli. Help edited by John Quensen.
Gotelli, N. J. 2000. Null model analysis of species co-occurrence patterns. Ecology 81:2606-2621.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.