check_cols: Warns if any of the passed column names is missing from the...

View source: R/data_prep.R

check_colsR Documentation

Warns if any of the passed column names is missing from the data provided.

Description

Warns if any of the passed column names is missing from the data provided.

Usage

check_cols(dt, cols)

Arguments

dt

A data.frame.

cols

A vector of column names.

Value

The vector of all columns present in dt.

Examples

chronicle::check_cols(mtcars, c('cyl', 'made_up_column'))

pheymanss/chronicle documentation built on Jan. 19, 2024, 6 a.m.