Description Usage Arguments Details Value See Also Examples
Take all segment-to-segment correspondences in the dataset, and produce for each a section composed of a title, a contingency table of all renderings of the given segment, and subsections listing all word pairs in which the given rendering is attested, all nicely formatted.
1 |
data |
[character] The dataset. Only datasets with two languages are supported. |
file |
[character] Name of the file to write the formatted list to. If |
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 |
unit |
[character] Count how many times a correspondence occurs or in how many words it occurs. Accepted values are |
direction |
[integer] If |
cols |
[character vector] Which columns of the dataset to print. Can be a vector of names, |
formatter |
[function] The function to which to pass unformatted data. Available formatters are: |
... |
Additional arguments passed to |
summary.soundcorrs
can produce a table of all segment-to-segment correspondences in a dataset, and findExamples
and findPairs
can find all the pairs of words which realize those correspondences, but combining their outputs is a time-consuming, and unnecessary manual labour. The same, or at least a very similar result can be produced automatically by this function. Its output is divided into sections, each comprised of the appropriate slice of the contingency table, and a list of all the examples which are relevant for the given correspondence. The output can be raw, or formatted as LaTeX or HTML, and it is not too difficult to write one's own, custom formatting function.
[character] A formatted list of of all segment-to-segment correspondences and all pairs in which they are attested.
1 2 3 | dataset <- loadSampleDataset ("data-abc")
allPairs (dataset)
allPairs (dataset, formatter=formatter.latex, cols=c("ORTHOGRAPHY.L1", "ORTHOGRAPHY.L2"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.