calcPercentile(mydata, pollutant = "o3", avg.time = "month",
percentile = 50, data.thresh = 0, start = NA)
date
field in the format Date
or POSIXct
. Must
have one variable to apply calculations to.timeAverage
for details.percentile = 50
for median values,
percentile = c(5, 50, 95
for multiple percentile
values.timeAverage
for details.timeAverage
for details.timePlot
. Given a data frame
with a date
field and one other numeric variable,
percentiles are calculated.timePlot
, timeAverage
# 95th percentile monthly o3 concentrations
percentiles <- calcPercentile(mydata, pollutant ="o3",
avg.time = "month", percentile = 95)
head(percentiles)
# 5, 50, 95th percentile monthly o3 concentrations
percentiles <- calcPercentile(mydata, pollutant ="o3",
avg.time = "month", percentile = c(5, 50, 95))
head(percentiles)
Run the code above in your browser using DataLab