Learn R Programming

soundcorrs (version 0.1.1)

formatter.latex: A formatter for allPairs. This one formats to LaTeX.

Description

A formatter for allPairs. This one formats to LaTeX.

Usage

formatter.latex(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

Run this code
# NOT RUN {
dataset <- sampleSoundCorrsData.capitals
allPairs (dataset, unit="o", formatter=formatter.latex)
# }

Run the code above in your browser using DataLab