powered by
Retrieves a \(\frac{N}{n}\) systematic sample
syst.sample(N, n, data)
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.
Population size.
Sample size
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.
data<-runif(40) syst.sample(40,8, data)
Run the code above in your browser using DataLab