scrubber(text.var, num2word = FALSE, rm.quote = TRUE, fix.comma = TRUE, fix.space = TRUE, ...)
TRUE
replaces a numbers with text
representations.TRUE
removes any \"
.TRUE
removes any spaces before a comma.TRUE
extra spaces before endmarks are
removed.replace_number
.Returns a parsed character vector.
Use to clean text variables when importing a new data set. Removes extra white spaces other textual anomalies that may cause errors.
## <strong>Not run</strong>: # x <- c("I like 456 dogs\t , don't you?\"") # scrubber(x) # scrubber(x, TRUE) # ## <strong>End(Not run)</strong>
strip