DailyAno {ClimProjDiags} | R Documentation |
This function computes daily anomalies from a vector containing the daily time series.
DailyAno(data, jdays = NULL, dates = NULL, calendar = NULL, na.rm = TRUE)
data |
A vector of daily data. |
jdays |
A vector of the corresponding day of the year. This vector must be the same length as parameter |
dates |
If |
calendar |
A character indicating the calendar type. |
na.rm |
A logical indicating whether missing values should be removed. If |
A vector of daily anomalies of the same length as parameter data
.
# Time series in a vector example: data <- 1:10 jdays <- c(rep(1, 5), rep(2, 5)) daily_anomaly <- DailyAno(data = data, jdays = jdays, na.rm = TRUE) print(daily_anomaly)