replace_abbreviation(text.var, abbreviation = qdapDictionaries::abbreviations, replace = NULL, ignore.case = TRUE)
abbreviations
data set.TRUE
replaces without regard to
capitalization.Returns a vector with abbreviations replaced.
This function replaces abbreviations with long form.
## <strong>Not run</strong>: # x <- c("Mr. Jones is here at 7:30 p.m.", # "Check it out at www.github.com/trinker/qdap", # "i.e. He's a sr. dr.; the best in 2012 A.D.", # "the robot at t.s. is 10ft. 3in.") # # replace_abbreviation(x) # # #create abbreviation and replacement vectors # abv <- c("in.", "ft.", "t.s.") # repl <- c("inch", "feet", "talkstats") # # replace_abbreviation(x, abv, repl) # # (KEY <- rbind(abbreviations, data.frame(abv = abv, rep = repl))) # replace_abbreviation(x, KEY) # ## <strong>End(Not run)</strong>
bracketX
,
qprep
,
replace_contraction
,
replace_number
,
replace_symbol