assert_has_variables {admiraldev}R Documentation

Does a Dataset Contain All Required Variables?

Description

[Deprecated]

This function is deprecated, please use assert_data_frame() instead.

Usage

assert_has_variables(dataset, required_vars)

Arguments

dataset

A data.frame

required_vars

A character vector of variable names

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]