Clean and connect parts of text together

connect_text(txt, connections = "[^a-zA-Z0-9]", connector = "_")

Arguments

txt

String charactors

connections

Characters to be replaced by connector

connector

Charactor used as connector

Value

cleaned text

Examples

if (FALSE) { # \dontrun{
connect_text("THIS - is complex (very bad)")} # }