Learn R Programming

omopgenerics (version 1.1.1)

combineStrata: Provide all combinations of strata levels.

Description

Provide all combinations of strata levels.

Usage

combineStrata(levels, overall = FALSE)

Value

A vector of all combinations of strata.

Arguments

levels

Vector of all strata levels to combine.

overall

Whether to provide an empty element character().

Examples

Run this code

combineStrata(character())
combineStrata(character(), overall = TRUE)
combineStrata(c("age", "sex"), overall = TRUE)
combineStrata(c("age", "sex", "year"))

Run the code above in your browser using DataLab