Standardise a vector
ts_standardise(
y,
na.rm = TRUE,
keepNAvalues = TRUE,
type = c("mean.sd", "median.mad")[1],
adjustN = TRUE
)
A time series or numeric vector
Set the na.rm
field
If na.rm = TRUE
and keepNAvalues = TRUE
, any NA
values in y
will be re-inserted after transformation.
Center on the "mean"
and divide by sd
(default), or center on "median"
and divide by mad
If TRUE
, apply Bessel's correction (divide by N-1
) or return the unadjusted SD
(divide by N
) (default = TRUE
)
A standardised vector
Other Time series operations:
ts_center()
,
ts_changeindex()
,
ts_checkfix()
,
ts_detrend()
,
ts_diff()
,
ts_discrete()
,
ts_duration()
,
ts_embed()
,
ts_integrate()
,
ts_levels()
,
ts_peaks()
,
ts_permtest_block()
,
ts_permtest_transmat()
,
ts_rasterize()
,
ts_sd()
,
ts_slice()
,
ts_slopes()
,
ts_sumorder()
,
ts_symbolic()
,
ts_trimfill()
,
ts_windower()