?nchar in the base R should also help...

On Mon, Nov 14, 2016 at 2:26 PM, Ismail SEZEN <[email protected]> wrote:

>
> > On 14 Nov 2016, at 11:44, Ferri Leberl <[email protected]> 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
>
> ______________________________________________
> [email protected] 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]]

______________________________________________
[email protected] 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.

Reply via email to