Description Usage Arguments Examples
View source: R/countCharOccurrences.R
Function for counting occurences of a char in string. Takes 2 arguments, the first the character to count, the second is the string that contains this character. It returns an integer.
1 | countCharOccurrences(char, s)
|
char |
the character to find |
s |
the string to find the char in |
1 | countCharOccurrences("s", "this is some text that has the letter s in it.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.