syst.sample | R Documentation |
Retrieves a \frac{N}{n}
systematic sample
syst.sample(N, n, data)
N |
Population size. |
n |
Sample size |
data |
Optional data of the population. |
If \frac{N}{n}
is not an even number a 1 in floor(\frac{N}{n}
) sample will be taken.
Vector of size n with numbers from 1 to N indicating the index samples to be taken. If data is provided then the instances will be returned.
data<-runif(40)
syst.sample(40,8, data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.