| validateNameStyle | R Documentation |
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.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.
validateNameStyle(
nameStyle,
...,
empty = TRUE,
nm = deparse1(substitute(nameStyle), backtick = TRUE),
call = parent.frame()
)
nameStyle |
A character vector. It must contain all the |
... |
Elements to be included. |
empty |
Whether it can be empty. |
nm |
Name to use in error messages. Defaults to the expression supplied
to |
call |
Call argument passed to |
invisible nameStyle.
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")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.