[R] function which returns number of occurrences of a pattern in string

Jan Kacaba jan.kacaba at gmail.com
Thu Oct 20 23:47:56 CEST 2016


Hello dear R-help

I tried to find function which returns number of occurrences of a pattern
in string. The closest match I've found is str_locate_all in stringr
package. I can use str_locate_all but write my function but I don't want
reinvent wheel.

JK

	[[alternative HTML version deleted]]



More information about the R-help mailing list