Learn R Programming

chronicle (version 0.3)

check_cols: 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

Run this code
# NOT RUN {
chronicle::check_cols(mtcars, c('cyl', 'made_up_column'))
# }

Run the code above in your browser using DataLab