Learn R Programming

soundcorrs (version 0.4.0)

print.list.applyChanges: Pretty printing for the result of applyChanges.

Description

Pretty printing for the result of applyChanges.

Usage

# S3 method for list.applyChanges
print(x, ...)

Arguments

x

[list.applyChanges] The output of applyChanges.

...

Unused; only for consistency with print.

Value

[list.applyChanges] The same object that was given as x.

Details

The output of applyChanges is a list, potentially a very long one, and difficult to read. To make it easier to digest, this function only prints the $end element, i.e. the final shapes produced by the application of all of the sound changes.

See Also

applyChanges, print.tree.applyChanges

Examples

Run this code
# NOT RUN {
# prepare sample data
dataset <- loadSampleDataset ("data-capitals")
changes <- list (loadSampleDataset("change-dl2l"), loadSampleDataset("change-rhotacism"))
# apply the changes
applyChanges (dataset, changes, "ORTHOGRAPHY.German")
applyChanges (dataset, changes, "ORTHOGRAPHY.German", "ORTHOGRAPHY.Polish", highlight="console")
# }

Run the code above in your browser using DataLab