Learn R Programming

soundcorrs (version 0.4.0)

print.tree.applyChanges: Pretty printing for part of the result of applyChanges.

Description

Pretty printing for part of the result of applyChanges.

Usage

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

Arguments

x

[tree.applyChanges] The tree element in the output of applyChanges.

...

Unused; only for consistency with print.

Value

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

Details

One of the elements in the output of applyChanges is a tree. It is represented as a nested list, potentially a very deeply nested and a very long list which would have been all but impossible to digest for a human. This function prints it as a structure that more resembles a tree, very similar to the output of str.

See Also

applyChanges, print.list.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")$tree
# }

Run the code above in your browser using DataLab