With this function you receive a sample of each strata within your
data with specified size for each strata.
Usage
strata.sample(data, n, replace = FALSE)
Value
A list containing one strata sample per index.
Arguments
data
Population data consisting of a number of columns of data and a last
column specifying the strata each instance belongs to.
n
Numeric array of sample sizes for each strata to be taken.
replace
Whether the sample to be taken can have repeated instances or not.
Details
n length must be equal to number of strata in data.
On return list each strata sample can be accessed calling object$strataname where
strataname are values of the last column of the original data.