comma_spacer: Ensure Space After Comma

Description Usage Arguments Value Examples

View source: R/comma_spacer.R

Description

Adds a space after a comma as strip and many other functions may consider a comma separated string as one word (i.e., "one,two,three" becomes "onetwothree" rather than "one two three").

Usage

1
comma_spacer(text.var)

Arguments

text.var

The text variable.

Value

Returns a vector of strings with commas that have a space after them.

Examples

1
2
3
4
5
## Not run: 
x <- c("the,  dog,went", "I,like,it", "where are you", NA, "why", ",", ",f")
comma_spacer(x)

## End(Not run)

qdap documentation built on May 19, 2017, 2:19 p.m.

Search within the qdap package
Search all R packages, documentation and source code