count {charcuterie} | R Documentation |
Count Characters in a Chars Object
count(x, value, ignore.case = FALSE)
x |
A vector of characters. |
value |
character (length 1) to count |
ignore.case |
should the letter case be ignored? |
integer, count of instances of value
in x
count(chars("strawberry"), 3)