Learn R Programming

chevron (version 0.2.7)

check_all_colnames: Check that all names are among column names

Description

Check that all names are among column names

Usage

check_all_colnames(df, x, null_ok = TRUE, qualifier = NULL)

Value

invisible NULL or a string if the criteria are not fulfilled.

Arguments

df

(data.frame)

x

(character) the names of the columns to be checked.

null_ok

(flag) can x be NULL.

qualifier

(string) to be returned if the check fails.