View source: R/metR_small_funs.R
Anomaly | R Documentation |
Saves keystrokes for computing anomalies.
Anomaly(x, baseline = seq_along(x), ...)
x |
: numeric vector |
baseline |
: logical or numerical vector used for subsetting x before computing the mean |
... |
other arguments passed to |
A numeric vector of the same length as x with each value's distance to the mean.
Other utilities:
JumpBy()
,
Mag()
,
Percentile()
,
logic
##--not run
##Zonal temperature anomaly
#library(data.table)
#temperature[, .(lon = lon, air.z = Anomaly(air)), by = .(lat, lev)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.