You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's fairly common to want to match values independently from the case. Although it's easy to lower case the input data, having a parameter to do it would make it even easier and reduce cognitive load.
# tends to be easier to read
vec_match(needles, haystack, ignore_case=TRUE)
# than
vec_match(tolower(needles), tolower(haystack))
The text was updated successfully, but these errors were encountered:
Thanks, but I think in this case it is better to keep vec_match() and vec_in() as generic as possible, and let other helpers like tolower() take care of normalizing the input if that is required.
It's fairly common to want to match values independently from the case. Although it's easy to lower case the input data, having a parameter to do it would make it even easier and reduce cognitive load.
The text was updated successfully, but these errors were encountered: