normalise: normalises a vector so that it sums to 1

View source: R/general_functions.R

normaliseR Documentation

normalises a vector so that it sums to 1

Description

normalises a vector so that it sums to 1

Usage

normalise(vec)

Arguments

vec

numeric vector to be normalised

Value

normalised vector of same length as vec


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.