AtlasOfLivingAustralia / galah-R

Query living atlases from R
https://galah.ala.org.au
38 stars 3 forks source link

Support common filtering functions within `galah_filter()` #196

Closed daxkellie closed 7 months ago

daxkellie commented 1 year ago

With the shift to using Advanced R syntax for parsing logical statements in galah_filter() (#169), galah_filter() is now better structured to identify when users have supplied other functions like is.na() to galah_filter(). As a result, adding support for common filtering functions will help users use familiar syntax to edit queries.

The proposed change will allow users to do things like:

galah_call() |>
  identify("reptilia") |>
  filter(!is.na(species)) |>
  collect("counts")
mjwestgate commented 7 months ago

Supported as of version 2.0