formatter.html | R Documentation |
allPairs
. This one formats to HTML.A formatter for allPairs
. This one formats to HTML.
formatter.html(what, x, direction = 1)
what |
[character] What type of data is |
x |
The object to be formatted. |
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. |
[character] Formatted x.
# prepare sample dataset fTrans <- system.file ("extdata", "trans-common.tsv", package="soundcorrs") fData <- system.file ("extdata", "data-capitals.tsv", package="soundcorrs") tmp.ger <- read.soundcorrs (fData, "German", "ALIGNED.German", fTrans) tmp.pol <- read.soundcorrs (fData, "Polish", "ALIGNED.Polish", fTrans) dataset <- merge (tmp.ger, tmp.pol) # run allPairs allPairs (dataset, unit="o", formatter=formatter.html)