Skip to contents

[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

Value

The function throws an error if any of the required variables are missing in the input dataset. Otherwise, the dataset is returned invisibly.

Details

Checks if a dataset contains all required variables

See also