Description Usage Arguments Value Author(s) Examples
Checks if a dataset contains all required variables
1 | assert_has_variables(dataset, required_vars)
|
dataset |
A |
required_vars |
A |
The function throws an error if any of the required variables are missing in the input dataset
Thomas Neitmann
1 2 3 4 5 6 7 8 | library(admiral.test)
data(dm)
assert_has_variables(dm, "STUDYID")
## Not run:
assert_has_variables(dm, "AVAL")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.