percent_days_op_threshold: Percent of Days Above or Below Threshold

View source: R/rIACI.R

percent_days_op_thresholdR Documentation

Percent of Days Above or Below Threshold

Description

Calculates the percentage of days exceeding or below a threshold.

Usage

percent_days_op_threshold(
  temp,
  dates,
  month_day,
  date_factor,
  quantiles_df,
  qtile,
  op = "<",
  max_missing_days
)

Arguments

temp

Numeric vector. Temperature data.

dates

Date vector. Dates corresponding to the data.

month_day

Character vector. Month-day strings.

date_factor

Factor. Date grouping factor (e.g., monthly or annual).

quantiles_df

Data frame. Quantiles data.

qtile

Numeric. Quantile to use.

op

Character. Comparison operator, e.g., '<' or '>'.

max_missing_days

Named numeric vector. Maximum allowed missing days.

Value

Numeric vector or data frame with calculated percentages.


rIACI documentation built on April 12, 2025, 9:16 a.m.