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

How does miss_var_span deal with remainders? #270

Closed
njtierney opened this issue Aug 27, 2020 · 0 comments
Closed

How does miss_var_span deal with remainders? #270

njtierney opened this issue Aug 27, 2020 · 0 comments

Comments

@njtierney
Copy link
Owner

Need to update the miss_var_span docs, and add a message describing the number of spans and the remainder left and how that is handled. There should be a warning message that describes whatever the final span is should be provided.

I need to think about how to best capture/describe this, but something like this to start,

When the number of observations isn't a perfect multiple of the span length, the final span is whatever the last remainder is. For example:

library(naniar)
test <- miss_var_span(pedestrian,
                      var = hourly_counts,
                      span_every = 4000)

sum(test$n_miss) + sum(test$n_complete)
#> [1] 40000

Created on 2020-08-27 by the reprex package (v0.3.0)

(Issue noted by Allison Horst)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant