[R] Frequency of a character in a string

Ismail SEZEN sezenismail at gmail.com
Mon Nov 14 09:56:45 CET 2016


> On 14 Nov 2016, at 11:44, Ferri Leberl <ferri.leberl at gmx.at> wrote:
> 
> 
> Dear All,
> Is there a function to count the occurences of a certain character in a string resp. in a vector of strings?
> Thank you in advance!
> Yours, Ferri
> 

library(stringr)
?str_count



More information about the R-help mailing list