check_is_categorical: Check whether a column selection is categorical

View source: R/checks.R

check_is_categoricalR Documentation

Check whether a column selection is categorical

Description

Check whether a column selection is categorical

Usage

check_is_categorical(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 columns are categorical


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