count: Count Characters in a Chars Object

View source: R/count.R

countR Documentation

Count Characters in a Chars Object

Description

Count Characters in a Chars Object

Usage

count(x, value, ignore.case = FALSE)

Arguments

x

A vector of characters.

value

character (length 1) to count

ignore.case

should the letter case be ignored?

Value

integer, count of instances of value in x

Examples

count(chars("strawberry"), 3)

charcuterie documentation built on April 3, 2025, 8:53 p.m.