Learn R Programming

MAPCtools (version 0.1.0)

check_cols_exist: Check if a set of columns is missing from a data frame. For use in aggregate_df.

Description

Check if a set of columns is missing from a data frame. For use in aggregate_df.

Usage

check_cols_exist(cols, df)

Value

Nothing. Casts an error message if any of the columns are missing.

Arguments

cols

String or vector of strings that is the name of the columns.

df

Data frame