col_exists: Checks if column names exist in columns of dataframe.

Description Usage Arguments Details Value

View source: R/col_exists.R

Description

This is a private function for dfcompare.

Usage

1
col_exists(df, colname)

Arguments

df

data frame to be tested

colname

a vector of character strings to check

Details

It is currently used to detect if the specified keys are in the data frame. If not found, it prints and error message indicating the missing columns.

Value

True if found, false if not


meihkv/dfcompare documentation built on Dec. 1, 2020, 12:27 p.m.