Learn R Programming

covfefe (version 1.0.0)

blend_words: Blend two words into a portmanteau

Description

Combines the beginning of word1 with the end of word2.

Usage

blend_words(word1, word2, overlap = NULL)

Value

Character. Blended word

Arguments

word1

Character. First word (contributes beginning)

word2

Character. Second word (contributes ending)

overlap

Integer. Desired overlap characters (auto-detected if NULL)

Examples

Run this code
blend_words("breakfast", "lunch")  # "brunch" or similar
blend_words("refute", "repudiate") # "refudiate" or similar

Run the code above in your browser using DataLab