Learn R Programming

omopgenerics (version 1.1.1)

validateStrataArgument: To validate a strata list. It makes sure that elements are unique and point to columns in table.

Description

To validate a strata list. It makes sure that elements are unique and point to columns in table.

Usage

validateStrataArgument(strata, table, call = parent.frame())

Value

The same strata input or an error if the input is incorrect.

Arguments

strata

A list of characters that point to columns in table.

table

A table with columns.

call

Passed to cli functions.

Examples

Run this code
strata <- list("age", "sex", c("age", "sex"))
x <- dplyr::tibble(age = 30L, sex = "Female")

validateStrataArgument(strata, x)

Run the code above in your browser using DataLab