normalise: normalises a vector so that it sums to 1

Description Usage Arguments Value

View source: R/general_functions.R

Description

normalises a vector so that it sums to 1

Usage

1
normalise(vec)

Arguments

vec

numeric vector to be normalised

Value

normalised vector of same length as vec


ada-w-yan/reassortment documentation built on April 10, 2021, 12:03 a.m.