Function to detect whether a character is continuous or discrete
Source:R/detectCharacterType.R
detectCharacterType.Rd
This function detects whether a given vector is a continuous (e.g., with values 2.45, 9.35, and so on) or a discrete (e.g., with values blue, red, yellow) character.
Examples
data(anolis)
detectCharacterType(anolis$dat[, 1])
#> [1] "discrete"