Closed mjwestgate closed 8 months ago
I think this could be useful, but the error message is pretty clear to the user to double check the column name. I think in general, tidy syntax is consistent that fuzzy matching takes place when names are in quotes (like in many {stringr} string detect functions), whereas column names outside of quotes are case-sensitive (like dplyr::select()
or dplyr::filter
). So, I think this can be left without action for the time being
Agree this is more risky than useful
search_
functions ingalah
are deliberately case insensitive. Internally we usetolower()
on both the query and the pattern before runninggrepl()
, allowing any combination of upper and lower case to succeed:In contrast, field names are case sensitive in
galah_
functions, which can be challenging when field names are camel case, e.g.It would be fairly straightforward to support case-insensitivity within
galah_filter
,galah_select
andgalah_group_by
; or even to go a step further and useagrep()
for fuzzy matching (with some care needed).