R/preanalysis_functions.r
checkFrequency.Rd
checkFrequency
is a descriptive function for checking whether all response categories in a frequency table have a frequency of at least 1.
checkFrequency(data)
a PROsetta_data
object. See loadData
for loading a dataset.
checkFrequency
returns TRUE
if all response categories have a frequency of at least 1, and FALSE
if not.
checkFrequency(data_asq) # TRUE
if (FALSE) { # \dontrun{
data_asq@response$EDANX01[data_asq@response$EDANX01 == 4] <- 3
checkFrequency(data_asq) # FALSE
} # }