scrubber | R Documentation |
Use to clean text variables when importing a new data set. Removes extra white spaces other textual anomalies that may cause errors.
scrubber(
text.var,
num2word = FALSE,
rm.quote = TRUE,
fix.comma = TRUE,
fix.space = TRUE,
...
)
text.var |
The text variable. |
num2word |
logical If |
rm.quote |
logical If |
fix.comma |
logical If |
fix.space |
logical. If |
... |
Other arguments passed to |
Returns a parsed character vector.
strip
## Not run:
x <- c("I like 456 dogs\t , don't you?", 'The end"')
scrubber(x)
scrubber(x, TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.