Learn R Programming

soundcorrs (version 0.1.1)

tableTwo: Build a contingency table counting either occurrences or words.

Description

Make a table out of two lists.

Usage

tableTwo(rows, cols, unit)

Arguments

rows

[list] The list that will become rows, divided into words.

cols

[list] The list that will become cols, divided into words.

unit

[character] Count occurrences or words? Accepted values are "o(cc(urence(s))))" and "w(or(d(s)))".

Value

[table] The contingency table.

Examples

Run this code
# NOT RUN {
dataset <- sampleSoundCorrsData.abc
soundcorrs:::tableTwo (dataset$segms[[1]]$z, dataset$segms[[2]]$z, "o")
# }

Run the code above in your browser using DataLab