DailyAno {ClimProjDiags} | R Documentation |
Daily anomalies
Description
This function computes daily anomalies from a vector containing the daily time series.
Usage
DailyAno(data, jdays = NULL, dates = NULL, calendar = NULL, na.rm = TRUE)
Arguments
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
|
Value
A vector of daily anomalies of the same length as parameter
data
.
Examples
# 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)
[Package ClimProjDiags version 0.3.3 Index]