txt_count: Count the number of times a pattern is occurring in text
Description
Count the number of times a pattern is occurring in text.
Pattern counting is performed by executing a regular expression using gregexpr and
checking how many times the regular expression occurs.
Usage
txt_count(x, pattern, ...)
Value
an integer vector of the same length as x indicating how many times the pattern is occurring in x