sampleBin
1 2 3 |
map |
a surveyHat object (data frame containing ssbids fylke and kommune colums, response colum and potential other grouping columns) |
nYears |
the number of years of the survey. Note that you need at least two years to have one revisit. Defaults to the timespan of the map. |
yearlyCapacity |
the total yearly survey capacity. |
resampleTime |
how many years between revisits? Defaults to 1 for yearly revisits. |
resampleWithin |
within which region (or other category) should the revisits be distributed. Ensures even sampling schemes in all regions. Note that all regions may get fewer locations if the yearlyCapacity and number of regions don't match up. |
column |
Column to draw samples from. Defaults to "norm" for normally distributed variables. |
subFylke |
optionally limit the draws to set of fylkes. Character vector. |
subKommune |
optionally limit the drawn cells to a set of kommunes. Character vector. |
gridCells |
Vector of which map grid cells to draw from, for repeated samples from the same grid cells. Overrides arguments associated with random draws of map cells. |
nObs |
Number of observations to draw. Can be a single integer or a vector of integers. This will be coerced to integer(s). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.