Learn R Programming

soundcorrs (version 0.1.1)

soundcorrs: Constructor function for the soundcorrs class.

Description

Take multiple scOne objects and combine them into a single soundcorrs object.

Usage

soundcorrs(...)

Arguments

...

[scOne] Multiple scOne objects to be combined.

Value

[soundcorrs] An object containing the data and metadata for multiple language.

Fields

cols

[character list] Names of important columns.

data

[data.frame] The original data, merged.

name

[character] Names of the languages.

segms

[character list] Words exploded into segments. With linguistic zeros preserved ($z) or removed ($nz).

segpos

[integer list] A lookup list to check which character belongs to which segment. Counted with linguistic zeros preserved ($z) and removed ($nz).

separators

[character] Strings used as segment separators in cols$aligned.

trans

[transcription] transcription objects.

words

[character list] Words obtained by removing separators from the cols$aligned columns. With linguistic zeros ($z) or without them ($nz).

Examples

Run this code
# NOT RUN {
# path to sample data in the "wide format"
fNameData <- system.file ("extdata", "data-capitals.tsv", package="soundcorrs")
# path to a sample transcription
fNameTrans <- system.file ("extdata", "trans-common.tsv", package="soundcorrs")
ger <- read.scOne (fNameData, "German", "ALIGNED.German", fNameTrans)
pol <- read.scOne (fNameData, "Polish", "ALIGNED.Polish", fNameTrans)
spa <- read.scOne (fNameData, "Spanish", "ALIGNED.Spanish", fNameTrans)
dataset <- soundcorrs (ger, pol, spa)
# }

Run the code above in your browser using DataLab