Closed mjwestgate closed 1 year ago
Note to self to support slice_head()
to atlas_occurrences()
using pageSize
arg in new API. Using the start
arg it might be possible to support slice()
as well.
On a related note; technically we've implemented slice_max()
so far, despite calling it slice_head()
, because solr
ranks in decreasing order of count by default. To choose between these would could use fsort=count
for slice_max()
or fsort=index
for slice_head()
. Optionally we could add dir=asc
to implement slice_min()
& slice_tail()
complete
At a recent webinar, @huizezhang-sherry suggested that we could implement extensions
dplyr
functions pretty easily, given that our functions use the same methods and terminology anyway. E.g. instead of:We could then use:
The approach is documented here.
Some other thoughts:
select/galah_select
,group_by/galah_group_by
obvious extensionsdplyr
equivalent but could have alternate names, e.g.identify/galah_identify
(also an S3 function fromgraphics
) orapply_profile/galah_apply_profile
atlas_counts(expand = TRUE)
could be replaced byexpand() |> atlas_counts()
(currently an S3 method intidyr
)