ensure_table_columns: Check if supplied table contains all *required* variables.

View source: R/utilities.R

ensure_table_columnsR Documentation

Check if supplied table contains all *required* variables.

Description

Logs an error if any variable is missing and lists the missing variables in the error message along with *data_name*.

Usage

ensure_table_columns(required, data, data_name = "the data table")

Arguments

required

List of names of required variables.

data

data.frame or similar object to be checked.

data_name

Name to be displayed in the error message if any variable is missing.


growR documentation built on May 29, 2024, 9:12 a.m.