Skip to contents

Verify that a data.frame has the expected columns present

Usage

check_expected_cols(data, cols)

Arguments

data

A data.frame or similar object

cols

A character vector of expected column names

Value

`data` where the columns are ordered according to the order in `cols`.

Details

Either more or fewer columns are an error.

See also