Learn R Programming

covfefe (version 1.0.0)

syllable_swap: Swap syllables between two words

Description

Swap syllables between two words

Usage

syllable_swap(word1, word2, position = 1L)

Value

Character vector of length 2 with swapped words

Arguments

word1

Character. First word

word2

Character. Second word

position

Integer. Which syllable to swap (1-indexed)

Examples

Run this code
syllable_swap("coverage", "president", 1)

Run the code above in your browser using DataLab