Learn R Programming

orchaRd (version 2.2.1)

is_categorical: 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)

Value

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

Arguments

x

An object to check.