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

[Feature Request]: Add the rollingMean function as part of the timeAverage #328

Open
marcelooyaneder opened this issue Feb 13, 2023 · 0 comments
Labels
enhancement Ideas for new features for openair

Comments

@marcelooyaneder
Copy link

Hi, hope everyone is doing well.

I was using a mix of rollingMean and timeAverage function, and this make me think that the function should be inside of the timeAverage. One of the benefits of this change is the use of the type inside of rolling mean.

df8h<-data.frame()

for(station in unique(p$cod.est)){
df8h<-p%>%
filter(cod.est==station)%>%
rollingMean(pollutant='DatoValidado',new.name = "DatoValidado")%>%
bind_rows(df8h)
}

p<-df8h%>%
timeAverage(avg.time = 'day',data.thresh = 75, statistic = 'max',type=c('cod.est','contaminante'))%>%
timeAverage(avg.time = 'year',data.thresh = 75,statistic = 'percentile',percentile=percentile,type=c('cod.est','contaminante'))

@marcelooyaneder marcelooyaneder added the enhancement Ideas for new features for openair label Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Ideas for new features for openair
Projects
None yet
Development

No branches or pull requests

1 participant