checkFrequency is a descriptive function for checking whether all response categories in a frequency table have a frequency of at least 1.

checkFrequency(data)

Arguments

data

a PROsetta_data object. See loadData for loading a dataset.

Value

checkFrequency returns TRUE if all response categories have a frequency of at least 1, and FALSE if not.

Examples

checkFrequency(data_asq) # TRUE

if (FALSE) { # \dontrun{
data_asq@response$EDANX01[data_asq@response$EDANX01 == 4] <- 3
checkFrequency(data_asq) # FALSE
} # }