is_categorical: Check if an Object is Categorical

View source: R/mod_results.R

is_categoricalR Documentation

Check if an Object is Categorical

Description

Determines whether the given object is categorical, defined as a character vector, a factor, or 'NULL'.

Usage

is_categorical(x)

Arguments

x

An object to check.

Value

A logical value: 'TRUE' if 'x' is a character vector, a factor, or 'NULL'; otherwise, 'FALSE'.


daniel1noble/orchaRd documentation built on Feb. 23, 2025, 9:17 a.m.