validateNameStyle(
nameStyle = "hi_{cohort_name}",
cohortName = c("cohort1", "cohort2"),
otherVariable = c("only 1 value")
)
if (FALSE) {
validateNameStyle(
nameStyle = "hi_{cohort_name}",
cohortName = c("cohort1", "cohort2"),
otherVariable = c("value1", "value2")
)
}
validateNameStyle(
nameStyle = "{other_variable}_hi_{cohort_name}",
cohortName = c("cohort1", "cohort2"),
otherVariable = c("value1", "value2")
)
Run the code above in your browser using DataLab