loadSampleDataset: Load one of 'soundcorrs" sample datasets.

Description Usage Arguments Details Value Examples

Description

Retrieve and return one the sample datasets included in soundcorrs.

Usage

1

Arguments

x

[character] Name of the dataset to load. Available sets are: soundchange's: change-dl2l, change-palatalization, change-rhotacism; soundcorrs's: data-abc, data-capitals, data-ie; and transcription's: trans-common, trans-ipa.

Details

R does not allow non-ASCII characters in preloaded datasets, and linguistic datasets can hardly fit within ASCII. Unicode is, however, allowed in raw data files. They cannot be automatically loaded when soundcorrs is attached because staged install makes it impossible to use system.file in this manner, and they cannot be included as a Unicode-escaped output of dput because Windows does not know how to convert this to its native encoding. This function makes the process of loading as painless as possible.

Value

[soundchange/soundcorrs/transcription] The selected sample dataset.

Examples

1
2
3
loadSampleDataset ("data-abc")
loadSampleDataset ("trans-ipa")
loadSampleDataset ("change-palatalization")

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