normalise: normalises a vector so that it sums to 1

Description Usage Arguments Value

View source: R/helpers.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


jameshay218/vaxedemic documentation built on Jan. 30, 2020, 2:58 a.m.