check_cha {lulab.utils} | R Documentation |
Check for missing values for character columns
check_cha(col, df, verbose = TRUE)
col |
a character variable name |
df |
a data.frame |
verbose |
logical, controlling the output |
This function is used to check the distribution of character variables in the data frame.
a distribution table of the character variable in the data frame
Zhen Lu
data("melanoma", package = "boot")
melanoma2 <- melanoma
check_cha('status', melanoma2)
# or
mapply(check_cha,'status', MoreArgs= list(melanoma2))