Learn R Programming

soundcorrs (version 0.1.1)

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

Description

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

Usage

addSeparators(x, separator = "|")

Arguments

x

[character vector] The strings to be interspersed.

separator

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

Value

[character vector] A vector of interspersed strings.

Examples

Run this code
# NOT RUN {
addSeparators (c("word","mot","focal"), ".")
# }

Run the code above in your browser using DataLab