normalize_data: Normalize Data

View source: R/normalize_data.R

normalize_dataR 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)


swaRmverse documentation built on Oct. 10, 2024, 5:08 p.m.