assert_has_variables {admiraldev} | R Documentation |
Does a Dataset Contain All Required Variables?
Description
This function is deprecated, please use assert_data_frame()
instead.
Usage
assert_has_variables(dataset, required_vars)
Arguments
dataset |
A |
required_vars |
A |
Details
Checks if a dataset contains all required variables
Value
The function throws an error if any of the required variables are missing in the input dataset. Otherwise, the dataset is returned invisibly.
See Also
Other deprecated:
assert_function_param()
,
assert_named_exprs()
[Package admiraldev version 1.1.0 Index]