Apply detectCharacterType over an entire matrix
Source:R/detectCharacterType.R
detectAllCharacters.Rd
This function detects whether each column in a matrix is a continuous (e.g., with values 2.45, 9.35, and so on) or a discrete character (e.g., with values blue, red, yellow).
Examples
data(anolis)
detectAllCharacters(anolis$dat)
#> [1] "discrete" "continuous" "continuous" "continuous" "continuous"
#> [6] "continuous" "continuous" "continuous" "continuous" "discrete"
#> [11] "discrete"