countCharOccurrences: count char occurrences

Description Usage Arguments Examples

View source: R/countCharOccurrences.R

Description

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.

Usage

1

Arguments

char

the character to find

s

the string to find the char in

Examples

1
countCharOccurrences("s", "this is some text that has the letter s in it.")

maczokni/misperTweetsCode documentation built on May 8, 2020, 5:14 p.m.