Learn R Programming

soundcorrs (version 0.4.0)

checkCount: Check if the count argument is correct.

Description

Makes sure the count argument has one of the many available values.

Usage

checkCount(count)

Arguments

count

[character] The string to check.

Value

[character] Either "a" or "r".

Details

Functions which produce contingency tables, coocc and summary, have an argument count which can take as many as six different values which all point to just two unique behaviours. checkCount reduces this multitude to just the two meaningful values. It also throws an error if count is none of the six possibilities.

See Also

checkUnit

Examples

Run this code
# NOT RUN {
soundcorrs:::checkCount ("abs")
soundcorrs:::checkCount ("absolute")
# }

Run the code above in your browser using DataLab