checkFrequency {PROsetta}R Documentation

Check frequency table for unobserved response categories

Description

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

Usage

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

## Not run: 
data_asq@response$EDANX01[data_asq@response$EDANX01 == 4] <- 3
checkFrequency(data_asq) # FALSE

## End(Not run)


[Package PROsetta version 0.4.1 Index]