Calculates the percentage of days exceeding or below a threshold.
percent_days_op_threshold(
temp,
dates,
month_day,
date_factor,
quantiles_df,
qtile,
op = "
Numeric vector or data frame with calculated percentages.
Numeric vector. Temperature data.
Date vector. Dates corresponding to the data.
Character vector. Month-day strings.
Factor. Date grouping factor (e.g., monthly or annual).
Data frame. Quantiles data.
Numeric. Quantile to use.
Character. Comparison operator, e.g., '<' or '>'.
Named numeric vector. Maximum allowed missing days.