R/edit_symbols.R

Defines functions edit_symbols

Documented in edit_symbols

load("data/symbols.rda")

edit_symbols <- function(text){

    x = symbols$symbol
    y = symbols$word

    x <- paste0('(?<![[:graph:]])', x, '(?!([[:graph:]]|$))')

    text <- mgsub_regex(text, x, y, perl = T, ignore.case = T)


    return(text)


}
achilleas-251/txtprocess documentation built on March 30, 2020, 12:43 a.m.