11.07.2015 Views

Package 'openair'

Package 'openair'

Package 'openair'

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8 calcPercentilecalcPercentileCalculate percentile values from a time seriesDescriptionCalculates multiple percentile values from a time series, with flexible time aggregation.UsagecalcPercentile(mydata, pollutant = "o3",avg.time = "month", percentile = 50, data.thresh = 0,start = NA)Argumentsmydatapollutantavg.timepercentiledata.threshstartA data frame of data with a date field in the format Date or POSIXct. Musthave one variable to apply calculations to.Name of variable to process. Mandatory.Averaging period to use. See timeAverage for details.A vector of percentile values. For example percentile = 50 for median values,percentile = c(5, 50, 95 for multiple percentile values.Data threshold to apply when aggregating data. See timeAverage for details.Start date to use - see timeAverage for details.DetailsThis is a utility function to calculate percentiles and is used in, for example, timePlot. Given adata frame with a date field and one other numeric variable, percentiles are calculated.ValueReturns a data frame with new columns for each percentile level. New columns are given nameslike percentile.95 e.g. when percentile = 95 is chosen. See examples below.Author(s)David CarslawSee AlsotimePlot, timeAverage

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!