bracketX
,
replace_number
,
replace_symbol
,
replace_abbreviation
and
scrubber
to quickly prepare text for
analysis. Care should be taken with this function to
ensure data is properly formatted and complete.qprep(text.var, rm.dash = TRUE, bracket = "all",
missing = NULL, names = FALSE,
abbreviation = qdap::abbreviations, replace = NULL,
ignore.case = TRUE, num.paste = "separate", ...)
"curly"
,
"square"
, "round"
, "angle"
and
"all"
. These strings correspond to: {, [, (, <
or all four NULL
which turns off this parsing techniqu"separate"
,
"combine"
); "separate"
will treat each word
section as separate, "combine"
will lump the
sections together as one word. Also takes the argument
NULL
link[qdap]{replace_symbol}
.bracketX
,
replace_abbreviation
,
replace_number
,
replace_symbol
x <- "I like 60 (laughter) #d-bot and $6 @ the store w/o 8p.m."
qprep(x)
Run the code above in your browser using DataLab