createSRS | R Documentation |
Create a simple random sample, either without replacement (the default setting), or with replacement.
createSRS(popdata, n1, seed = NA, replace = F)
popdata |
grid of population to be sampled. |
n1 |
initial sample size (sampled according to simple random sampling without replacement). |
seed |
vector of numbers to feed to |
replace |
Should sampling be done with replacement? Defaults to FALSE. |
A restricted adaptive cluster sample.
# example # create the population # create the patch # then sample data(Thompson1990Fig1Pop) data(Thompson1990Figure1Sample) Z = createSRS(Thompson1990Fig1Pop, seed=2, n1=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.