normalize_data {swaRmverse} | R Documentation |
Normalize Data
Description
This function rescales a vector to values between 0 and 1.
Usage
normalize_data(vec)
Arguments
vec |
A numerical vector to normalize. |
Value
A vector of doubles, the normalized values of the input vector.
Author(s)
Marina Papadopoulou m.papadopoulou.rug@gmail.com
Examples
d <- rnorm(20, mean = 10, sd = 1)
normalize_data(d)
[Package swaRmverse version 0.1.0 Index]