is_categorical: This function tests if a vector is of type categorial...

Description Usage Arguments Value

View source: R/which_type.R

Description

This function tests if a vector is of type categorial (factor, character or boolean).

Usage

1
is_categorical(x, numeric_cutoff = -1)

Arguments

x

a vector

numeric_cutoff

the minimum number of distinct values required for a numeric vector not to be coerced to a fator. -1 is the default, meaning no minimum required.

Value

a logical


MathieuMarauri/auditdata documentation built on March 6, 2020, 7:09 p.m.