validateNameStyle {omopgenerics} | R Documentation |
Validate nameStyle
argument. If any of the element in ...
has length
greater than 1 it must be contained in nameStyle. Note that snake case
notation is used.
Description
Validate nameStyle
argument. If any of the element in ...
has length
greater than 1 it must be contained in nameStyle. Note that snake case
notation is used.
Usage
validateNameStyle(nameStyle, ..., call = parent.frame())
Arguments
nameStyle |
A character vector. It must contain all the |
... |
Elements to be included. |
call |
Passed to cli functions. |
Value
invisible nameStyle.
Examples
validateNameStyle(
nameStyle = "hi_{cohort_name}",
cohortName = c("cohort1", "cohort2"),
otherVariable = c("only 1 value")
)
## Not run:
validateNameStyle(
nameStyle = "hi_{cohort_name}",
cohortName = c("cohort1", "cohort2"),
otherVariable = c("value1", "value2")
)
## End(Not run)
validateNameStyle(
nameStyle = "{other_variable}_hi_{cohort_name}",
cohortName = c("cohort1", "cohort2"),
otherVariable = c("value1", "value2")
)
[Package omopgenerics version 1.2.0 Index]