Data Transformation: Rescaling Values of Zoo Time Series to a New Range
Source:R/transformations.R
f_rescale.Rd
Data Transformation: Rescaling Values of Zoo Time Series to a New Range
See also
Other tsl_transformation:
f_center()
,
f_detrend_difference()
,
f_detrend_linear()
,
f_hellinger()
,
f_list()
,
f_pca()
,
f_percentage()
,
f_proportion()
,
f_scale()
,
f_slope()
,
f_smooth_window()
,
f_trend_linear()
Examples
x <- zoo_simulate(cols = 2)
y <- f_rescale(
x = x,
new_min = 0,
new_max = 100
)
if(interactive()){
zoo_plot(x)
zoo_plot(y)
}