check_has_column: Check whether a column exist and stop if not

View source: R/checks.R

check_has_columnR Documentation

Check whether a column exist and stop if not

Description

Check whether a column exist and stop if not

Usage

check_has_column(data, cols, msg = NULL)

Arguments

data

A data frame.

cols

A tidyselection of columns.

msg

A custom error message if the check fails.

Value

boolean Whether the column exists.


volker documentation built on April 12, 2025, 9:16 a.m.