powered by
Rescales a numeric vector to a new range.
rescale_vector( x = NULL, new.min = 0, new.max = 1, integer = FALSE )
A numeric vector of the same length as x, but with its values rescaled between new.min and new.max.
new.min
new.max.
Numeric vector. Default: NULL
NULL
New minimum value. Default: 0
0
New maximum value. Default: 1
1
Logical, if TRUE, coerces the output to integer. Default: FALSE
TRUE
FALSE
Other utilities: .vif_to_df(), auc(), beowulf_cluster(), objects_size(), optimization_function(), prepare_importance_spatial(), root_mean_squared_error(), setup_parallel_execution(), standard_error(), statistical_mode(), thinning(), thinning_til_n()
.vif_to_df()
auc()
beowulf_cluster()
objects_size()
optimization_function()
prepare_importance_spatial()
root_mean_squared_error()
setup_parallel_execution()
standard_error()
statistical_mode()
thinning()
thinning_til_n()
y <- rescale_vector( x = rnorm(100), new.min = 0, new.max = 100, integer = TRUE ) y
Run the code above in your browser using DataLab