replaces {maDB}R Documentation

Replace all occurences of a specified character in a string by a new character

Description

replaces This function helps to replace characters in a string.

Usage

replaces(x,old,new,...)

Arguments

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.

Details

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.

Author(s)

Johannes Rainer

References

See Also

replaceAll

Examples

replaces("there are to much white spaces",old=" ","+")

[Package maDB version 1.2.0 Index]