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

Description Usage Arguments Value Examples

View source: R/data_prep.R

Description

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

Usage

1
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

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

chronicle documentation built on June 25, 2021, 9:09 a.m.