Anomaly {metR} | R Documentation |
Anomalies
Description
Saves keystrokes for computing anomalies.
Usage
Anomaly(x, baseline = seq_along(x), ...)
Arguments
x |
numeric vector |
baseline |
logical or numerical vector used for subsetting x before computing the mean |
... |
other arguments passed to |
Value
A numeric vector of the same length as x with each value's distance to the mean.
See Also
Other utilities:
JumpBy()
,
Mag()
,
Percentile()
,
logic
Examples
# Zonal temperature anomaly
library(data.table)
temperature[, .(lon = lon, air.z = Anomaly(air)), by = .(lat, lev)]
[Package metR version 0.15.0 Index]