Base R grep-family is much faster than `stringr` variants when dealing with factors
I have been using stringr
since it’s supposed to be faster, but I found out today that it’s much slower when dealing with factor terms. I didn’t see any warning that this would be the case nor why it is.
Is there a way to extract the part of string in R
For this I want to get the string immediately after D:
. Any thought?