You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function should limit its functionality to wrapping potentially multiple calls to the openair::timeAverage() function and returning a data frame. We will keep the A and B channels separate for now.
We still need to do some investigating of the "pat" data so we can come up with some sort of reasonable QC before we start mixing A and B together to create our "official" number.
Input
pat = NULL -- pa_timeseries object
parameter = "pm25_A" -- "pat" data column to process
period = "10 min" -- used as avg.time ("period" is the terminology preferred by lubridate)
dataThreshold = 0 -- used as data.thresh
stats = "all" -- vector of statistics to return as dataframe columns
fill = FALSE" -- used as fill
Omit all of the following from opener::timeAverage(): "type, "percentile", "start.date", "end.date", "interval" and "vector.ws".
Output
The returned dataframe should have a first column named datetime followed by the names of the requested statistics with "count" replacing openair's "frequency".
When it all works, a user should be able to do the following:
# Generate a plot of 10 minute averages for pm25_Apat %>%
pat_timeAverage("pm25_A", "10 min", stats="mean") %>%
plot()
# Generate a QC plot of all statistics for channel Bpat %>%
pat_timeAverage("pm25_B", "1 hour") %>%
timeAveragePlot(plottype="QC")
# Test my own ideas for a QC metricmy_qc<-
pat_timeAverage("pm25_A", "1 hour", stats= c("median", "sd", "count")) %>%
mutate(qc_1=median-sd, qc_2=median/sd, qc_3=sd*count)
somePlotFunction(my_qc)
The text was updated successfully, but these errors were encountered:
This function should limit its functionality to wrapping potentially multiple calls to the
openair::timeAverage()
function and returning a data frame. We will keep the A and B channels separate for now.We still need to do some investigating of the "pat" data so we can come up with some sort of reasonable QC before we start mixing A and B together to create our "official" number.
Input
pat = NULL
-- pa_timeseries objectparameter = "pm25_A"
-- "pat" data column to processperiod = "10 min"
-- used asavg.time
("period" is the terminology preferred by lubridate)dataThreshold = 0
-- used asdata.thresh
stats = "all"
-- vector of statistics to return as dataframe columnsfill = FALSE"
-- used asfill
Omit all of the following from
opener::timeAverage()
: "type, "percentile", "start.date", "end.date", "interval" and "vector.ws".Output
The returned dataframe should have a first column named
datetime
followed by the names of the requested statistics with "count" replacing openair's "frequency".When it all works, a user should be able to do the following:
The text was updated successfully, but these errors were encountered: