stratum: Extract Strata

Description Usage Arguments Value Methods (by class) Examples

Description

Methods to extract strata information from an object. Here we only define a method for class "sts".

Usage

1
2
3
4
stratum(x, ...)

## S4 method for signature 'sts'
stratum(x, which = NULL, ...)

Arguments

x

an object of class "sts".

...

further arguments passed to methods.

which

an integer (strata dimension) or NULL (to get the plain colnames, the default).

Value

a character vector of strata names of length ncol(x).

Methods (by class)

Examples

1
2
3
noroBEall <- noroBE(by = "all", flatten = TRUE)
stratum(noroBEall)  # just colnames(noroBEall)
stratum(noroBEall, which = 2)  # the age groups

hhh4contacts documentation built on July 4, 2017, 9:44 a.m.