check_cha {lulab.utils}R Documentation

check_cha

Description

Check for missing values for character columns

Usage

check_cha(col, df, verbose = TRUE)

Arguments

col

a character variable name

df

a data.frame

verbose

logical, controlling the output

Details

This function is used to check the distribution of character variables in the data frame.

Value

a distribution table of the character variable in the data frame

Author(s)

Zhen Lu

Examples


data("melanoma", package = "boot")
melanoma2 <- melanoma
check_cha('status', melanoma2)
# or
mapply(check_cha,'status', MoreArgs= list(melanoma2))


[Package lulab.utils version 0.0.4 Index]