Learn R Programming

CCI (version 0.3.6.1)

is_categorical_Z_any: Check whether Z contains at least one categorical variable

Description

Categorical is defined as factor (and optionally character and logical). This helper is intentionally strict about inputs and does not modify data.

Usage

is_categorical_Z_any(sub_data, Z, allow_character = TRUE, allow_logical = TRUE)

Value

logical scalar.

Arguments

sub_data

data.frame containing the Z columns.

Z

character vector of column names defining the conditioning set.

allow_character

logical; treat character as categorical. Default TRUE.

allow_logical

logical; treat logical as categorical. Default TRUE.