levelCheck | R Documentation |
This function checks each variable in a data frame or matrix 'y' for the number of unique levels. If any variable contains 10 or more unique levels, a warning is issued suggesting consideration of continuous methods. It returns the unique values across all variables as a numeric vector.
levelCheck(y)
y |
A data frame or matrix to check for levels of variables. |
Numeric vector of all unique values across all variables in 'y'.
y <- data.frame(a = 1:5, b = factor(c("yes", "no", "yes", "maybe", "no")))
levelCheck(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.