AtlasOfLivingAustralia / galah-R

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

Should there be a `galah_profile` function? #130

Closed mjwestgate closed 1 year ago

mjwestgate commented 2 years ago

Currently, users set a profile as an optional argument within galah_filter. This is weird for a few reasons:

Alternate behaviour would be to allow piping of profiles specifically through its' own function, such as:

galah_call() |>
  galah_filter(year >= 2010) |>
  galah_profile(ALA) |>
  atlas_counts()
mjwestgate commented 2 years ago

Proposed name change to something more informative, e.g. galah_quality_profile

daxkellie commented 1 year ago

A decision was made after discussion to make the name galah_apply_profile() to keep the verbing language consistent for galah_ functions (e.g., select,filter, group_by). Name might require revisiting in the future