-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible to filter by multiple years? #13
Comments
So, could be nice to include this functionality. However, I have a concern on the backend for allowing multiple passing of parameters. Say you wanted to allow multiple ipc_get_areas(country = "AF", year = 2020)
ipc_get_areas(country = "AF", year = 2020:2022)
ipc_get_areas(country = c("SO", "AF"), year = 2020) That is because in the underlying script, we could simply use a ipc_get_areas(country = c("SO", "AF"), year = 2020:2023) That would fail with any basic |
Yea probably not worth it. The user has good options for post-filtering. What do you think about just wrapping the filter call - I know it's not elegant or effecient, but still might improve user-experience and I doubt the majority of users would really notice the lag something to this effect:
|
So looking into this, again, could be quite complex. For |
Just had a use-case where I wanted to filter
ipc_get_areas()
by multiple years.Seems only possible for single years.
Snipped from
ipc_get_areas()
, but if possible I would imagine logic could be applied to other ipc_get calls as well ifripc/R/ipc_get_areas.R
Lines 32 to 35 in fa404d0
The text was updated successfully, but these errors were encountered: