check_cols {chronicle} | R 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'))
[Package chronicle version 0.3 Index]