check_columns: Ensures that an object contains the required columns.

Description Usage Arguments Value

View source: R/check_conditions_funcs.R

Description

check_columns if the object is missing a required column then this function throws an error. If the object contains all or more of the required columns the object passes this condition check.

Usage

1
check_columns(object, required_columns, message_details = NULL)

Arguments

object

the data frame or tibble to check

required_columns

names of the columns that must be included in the object

message_details

default set to NULL but if the user sets equal to a string, the contents of the string will be included in the error message

Value

an error message if a required column is missing


JGCRI/HIRM documentation built on May 7, 2020, 9:38 a.m.