Description Usage Arguments Value See Also Examples
Extract a random subset of n
records from data
, ensuring that there are at least minimum
presence and absence records in the subset. The presence/absence column is identified by prescol
.
1 |
data |
A dataframe or matrix. |
n |
The number of records required in the subset. |
minimum |
An integer vector of length two giving the minimum number of presence (element one) and absence (element two) records in the subset. |
prescol |
An integer giving the column number for the presence/absence code (containing 1s for presences and 0s for absences.) |
replace |
Whether to sample with replacement. |
max_tries |
How many times to try the subsampling with minimum number of presences and absences before stopping with an error. |
A dataframe or matrix (whichever data
was).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.