count_char_occurrences: Count Occurrences of a Character

Description Usage Arguments Value Author(s) Examples

View source: R/count_char_occurrences.R

Description

Count the number of occurrences of a character in a string.

Usage

1
count_char_occurrences(char, strng_x)

Arguments

char

Character to search for.

strng_x

String that is searched

Value

An integer value.

Author(s)

John Quensen

Examples

1
2
my.strng <- "abcdefabcaa"
count_char_occurrences("a", strng_x=my.strng)

jfq3/RDPutils documentation built on Nov. 8, 2019, 1:05 p.m.