View source: R/clanToolsFunctions.R
replacechar | R Documentation |
Find the most common element(s) in a single vector Many elements may occur the same number of times (equal to the max number of times). For example, if a vector of unique elements are given to the function, then all elements occur exactly once. To limit the number of elements that is returned, a value for max.number.of.elements may be given. This functions also handles NULL vectors and NA-values.
replacechar("AbE","b","B")
x |
is the string |
char |
is the character to be replaced |
newchar |
is the new character |
The string with the replaced character
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.