checkUnit: Check if the 'unit' argument is correct.

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1

Arguments

unit

[character] The string to check.

Details

Functions which produce contingency tables, coocc and summary, have an argument count which can take as many as eight 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 eight possibilities.

Value

[character] Either "o" or "w".

See Also

checkCount

Examples

1
2
soundcorrs:::checkUnit ("occ")
soundcorrs:::checkUnit ("occurrence")

soundcorrs documentation built on Nov. 16, 2020, 5:09 p.m.