50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

soundcorrs (version 0.1.1)

allTables: Generate all contingency tables for a dataset.

Description

Generate all correspondence-to-correspondence or correspondence-to-metadata contingnecy tables for a dataset.

Usage

allTables(data, column, count, unit, direction, bin)

Arguments

data

[soundcorrs] The dataset from which to draw frequencies. Only datasets with two languages are supported.

column

[character] Name of the column with metadata. If NULL, sound correspondences are cross-tabulated with themselves. Defaults to NULL.

count

[character] Report the absolute number of times or words, or relative to how many times or in how many words the given segments co-occur in L1 or L2. Accepted values are "a(bs(olute))" and "r(el(ative))". Defaults to "a".

unit

[character] Count how many times a correspondence occurs or in how many words it occurs. Accepted values are "o(cc(ur(ence(s))))" and "w(or(d(s)))". Defaults to "w".

direction

[integer] If 1, correspondences are in the order Language1 > Language2 ("x yields y"). If 2, the order is Language2 < Language1 ("y originates from x"). Defaults to 1.

bin

[logical] Whether to bin tables before applying fun to them. Defaults to TRUE.

Value

[list] A list of tables.

Examples

Run this code
# NOT RUN {
dataset <- sampleSoundCorrsData.abc
allTables (dataset)
allTables (dataset, "DIALECT.L2", unit="o")
# }

Run the code above in your browser using DataLab