Creates a custom error condition created with rlang::abort() with a - hopefully - more useful error message and metadata.

abort_column_not_found(data, col_name)

Arguments

data

A data frame.

col_name

A character vector with the column name.

Value

Returns an error condition of classerror_column_not_found.

See also