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

Aggregation & missing values #51

Open
aukkola opened this issue Nov 6, 2017 · 0 comments
Open

Aggregation & missing values #51

aukkola opened this issue Nov 6, 2017 · 0 comments

Comments

@aukkola
Copy link
Owner

aukkola commented Nov 6, 2017

When aggregating to a coarser time step, the code sets the new time step to NA if any of the original time steps are NA (controlled by na.rm=FALSE):

aggr_data <- sapply(seq, function(x) mean(aggr_data[x:(x+ntsteps-1)], na.rm=FALSE))

This means that when aggregating from halfhourly to daily, for example, only 1 out of 48 time steps needs to be missing for the whole day to be set to missing. This seems overly strict, with no flexibility for the user.

Suggest adding a new processing threshold for controlling the percentage of aggregated time steps allowed to be missing.

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