Learn R Programming

soundcorrs (version 0.1.1)

tabAbs2Rel: Convert a table from absolute to relative values.

Description

Cross-tabulating sound correspondences with themselves may be misleading if the values are absolute, as it may well be that some segments simply do co-occur frequently, while others only rarely. The conversion is done in blocks: rows with the same prefix vs cols with the same prefix (if column = NULL) or vs all columns (if column is a string).

Usage

tabAbs2Rel(tab, column)

Arguments

tab

[table] The contingency table with sound correspondences.

column

[character] Do columns contain the same data as rows (NULL) or some other data (a string)?

Value

[table] The converted table.

Examples

Run this code
# NOT RUN {
dataset <- sampleSoundCorrsData.abc
soundcorrs:::tabAbs2Rel (table(dataset,unit="o",direction=2), NULL)
# }

Run the code above in your browser using DataLab