replaces {maDB} | R Documentation |
replaces
This function helps to replace characters in a string.
replaces(x,old,new,...)
x |
The strings where the replacements should occurr. |
old |
The character or vector of characters that should be replaced. |
new |
The character or vector of characters with whom the old characters should be replaced. |
... |
Additional parameters. Not used yet. |
This function replaces character strings with the one submitted. This function can only be applied to single strings. Use the replaceAll
to apply it to vectors of strings.
Johannes Rainer
replaces("there are to much white spaces",old=" ","+")