Learn R Programming

soundcorrs (version 0.4.0)

loadSampleDataset: Load one of soundcorrs' sample datasets.

Description

Retrieve and return one the sample datasets included in soundcorrs.

Usage

loadSampleDataset(x)

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.

Value

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

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.

Examples

Run this code
# NOT RUN {
loadSampleDataset ("data-abc")
loadSampleDataset ("trans-ipa")
loadSampleDataset ("change-palatalization")
# }

Run the code above in your browser using DataLab