addSeparators: Intersperse a vector of strings with a character or string.

Description Usage Arguments Details Value Examples

Description

Primarily intended to insert separators into a column of words, to facilitate manual segmentation and aligning.

Usage

1
addSeparators(x, separator = "|")

Arguments

x

[character vector] The strings to be interspersed.

separator

[character] The string with which to intersperse. Defaults to "|".

Details

Preparation of data for soundcorrs consists of segmentation and alignment. Segmentation can proceed on phoneme-by-phoneme, morpheme-by-morpheme, or any other basis; the only constraint is that each word in a pair/triple/... of words must contain the same number of segments. Segments are indicated by separators, by default the character "|". The action of inserting separators, potentially between every two letters, in a large dataset, can become time consuming. addSeparators automates at least this part of the process.

Value

[character vector] A vector of interspersed strings.

Examples

1
addSeparators (c("word","mot","focal"), ".")

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