Aspects


vs


Home Page
About Us
Feedback

Grepl

Grepl is an R function that searches for matches to argument pattern within each element of a character vector.

Substr

A function/method that returns part of a string



Others

Example

Finally i also made a benchmark test which shows that substr operation is slightly better than sapply grepl and significantly better than vectorised grepl alone

from question  

How to avoid the loops in a specific multiple conditional statement in R

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0