normalise_vec: Normalise a vector within 0 and 1

Description Usage Arguments Value Examples

View source: R/sbpiper_plots.r

Description

Normalise a vector within 0 and 1

Usage

1
normalise_vec(vec, na.rm = TRUE)

Arguments

vec

the vector to normalise

na.rm

TRUE if NA values should be discarded

Value

the normalised vector

Examples

1
2
v <- c(-4,2,10,25,9,NA)
normalise_vec(vec=v)

pdp10/sbpiper documentation built on May 17, 2019, 11:17 p.m.