Description Usage Arguments Value Examples
View source: R/samplePolygons.R
Takes binomial trials from a probability field created by simField randomly from the field where each observation takes place within a given polygon and is representative of that polygon.
1 2 | samplePolygons(field, N, M, times = NULL, p = 1, polygonList = NULL,
rWidth = NULL, ...)
|
field |
field object which simulated underlying data |
N |
int, number of points for each polygon |
M |
int, Number of trials for each point |
times |
vector of int, times to sample from |
p |
numeric >0 & <=1, percentage of polygons sampled |
polygonList |
list, list of polygons to sample from |
rWidth |
integer, instead of using a polygon list divide the original bounding box into approximately equal sized squares with rWidth number squares along the x axis. |
... |
further argumnets for compatibility |
data.frame with observation number, number of trials, and the id of the pixel that the trail took place in.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.