Learn R Programming

flair (version 0.0.2)

make_sandwiches: Recombines "sandwich" elements in proper order

Description

Helper for split_sandwiches. Once sections have been identified and extracted, recombines them in the correct order.

Usage

make_sandwiches(meat, top_buns, bottom_buns = NULL)

Arguments

meat

Character vector containing string sections between delimiters

top_buns

Character vector containing starting delimiters

bottom_buns

Character vector containing ending delimiters

Value

A character vector.