detectAllCharacters: Apply detectCharacterType over an entire matrix

View source: R/detectCharacterType.R

detectAllCharactersR Documentation

Apply detectCharacterType over an entire matrix

Description

Apply detectCharacterType over an entire matrix

Usage

detectAllCharacters(mat, repeatsAsDiscrete = TRUE, cutoff = 0.1)

Arguments

mat

A matrix of data

repeatsAsDiscrete

If TRUE, consider numeric variables that repeat values exactly as discrete; see cutoff

cutoff

Cutoff value for deciding if numeric data might actually be descrete: if nlev is the number of levels and n the length of dat, then nlev / n should exceed cutoff, or the data will be classified as discrete

Value

Vector of either "discrete" or "continuous" for each variable in matrix

Examples

data(anolis)
detectAllCharacters(anolis$dat)

uyedaj/treeplyr documentation built on March 9, 2023, 6:37 p.m.