Learn R Programming

swaRmverse (version 0.1.1)

normalize_data: Normalize Data

Description

This function rescales a vector to values between 0 and 1.

Usage

normalize_data(vec)

Value

A vector of doubles, the normalized values of the input vector.

Arguments

vec

A numerical vector to normalize.

Author

Marina Papadopoulou m.papadopoulou.rug@gmail.com

Examples

Run this code
d <- rnorm(20, mean = 10, sd = 1)
normalize_data(d)

Run the code above in your browser using DataLab