grapes-count-grapes: count pattern in strings the way of pipe operator

Description Usage Arguments Details Value Examples

Description

count pattern in strings the way of pipe operator

Usage

1
x %count% y

Arguments

x

Pattern to count in string

y

string where to count pattern

Details

This functions is a pipe version of stringr::count

Value

A vector of integer

Examples

1
2
3
fruit <- c("apple", "banana", "pear", "pineapple")
"a" %count% fruit
c("a", "b", "p", "p") %count% fruit

GuillaumePressiat/stringfix documentation built on Dec. 25, 2021, 12:24 a.m.