formatter.html: A formatter for 'allPairs'. This one formats to HTML.

Description Usage Arguments Value Examples

Description

A formatter for allPairs. This one formats to HTML.

Usage

1
formatter.html(what, x, direction = 1)

Arguments

what

[character] What type of data is x.

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.

Value

[character] Formatted x.

Examples

1
2
3
4
5
6
7
8
# 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)

soundcorrs documentation built on Nov. 16, 2020, 5:09 p.m.