Learn R Programming

simFrame (version 0.1.2)

stratify: Stratify data

Description

Generic function for stratifying data.

Usage

stratify(x, design)

Arguments

x
the data.frame to be stratified.
design
a character, logical or numeric vector specifying the variables (columns) to be used for stratification.

Value

  • An object of class "Strata".

See Also

Strata

Examples

Run this code
data(eusilc)
stratify(eusilc, c("region", "gender"))

Run the code above in your browser using DataLab