?nchar in the base R should also help... On Mon, Nov 14, 2016 at 2:26 PM, Ismail SEZEN <sezenism...@gmail.com> wrote:
> > > On 14 Nov 2016, at 11:44, Ferri Leberl <ferri.leb...@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 > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.