Skip to content
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

I would like to get the number of individuals in a state quickly #38

Closed
giovannic opened this issue Nov 9, 2020 · 0 comments
Closed
Labels
enhancement New feature or request small We have estimated that the issue should be one of the quicker fixes (1 point)

Comments

@giovannic
Copy link
Member

giovannic commented Nov 9, 2020

Currently, the only way to get the number of individuals in a state (or number of states) is

length(api$get_state(human, severe_covid, very_severe_covid))
# will get the combined index for individuals in the severe_covid and very_severe_covid state
# and then in R it will get the length of that vector

But I would like to do that without requesting the whole state vector

api$get_state_size(human, severe_covid, very_severe_covid)
# will quickly return the number of individuals in the severe_covid and very_severe_covid states
@giovannic giovannic added the enhancement New feature or request label Nov 9, 2020
@giovannic giovannic added the small We have estimated that the issue should be one of the quicker fixes (1 point) label Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request small We have estimated that the issue should be one of the quicker fixes (1 point)
Projects
None yet
Development

No branches or pull requests

1 participant