which_type: This function gives the types of a vector. It relies on...

Description Usage Arguments Value

View source: R/which_type.R

Description

This function gives the types of a vector. It relies on is_numeric and is_date.

Usage

1
which_type(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 character string giving the type of the input vector. Can be one of undefined, factor, numeric, logical and character


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