Description Usage Arguments Value Examples
View source: R/countCharOccurrences.R
Counts the number of times a single characte occurs in each string of a character vector.
1 | countCharOccurrences(char, v_s_string, b_ignore_case = FALSE)
|
char |
a single character cannot be a regular expression. |
v_s_string |
a character vector. |
b_ignore_case |
a boolean default FALSE. If TRUE case is ignored. |
a integer vector of the number of times the character occurs in each string in v_s_string.
1 2 3 | countCharOccurrences("a", c("a other a", "zero"))
countCharOccurrences("a", c("A sentence."))
countCharOccurrences("a", c("A sentence."), b_ignore_case = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.