powered by
Generic function for stratifying data.
stratify(x, design)
the data.frame to be stratified.
data.frame
a character, logical or numeric vector specifying the variables (columns) to be used for stratification.
An object of class "Strata".
"Strata"
x = "data.frame", design = "BasicVector"
stratify data according to the variables (columns) given by design.
design
"'>Strata"
# NOT RUN { data(eusilcP) strata <- stratify(eusilcP, c("region", "gender")) summary(strata) # }
Run the code above in your browser using DataLab