fractionalise: returns a vector where every element is replaced by its...

View source: R/lib_vector.R

fractionaliseR Documentation

returns a vector where every element is replaced by its fraction of the total sum of the vector

Description

returns a vector where every element is replaced by its fraction of the total sum of the vector

Usage

fractionalise(x)

Arguments

x

a numerical vector

Value

a numerical vector containing fractional values (0 <= ... <= 1)


jorritvm/jrutils documentation built on Feb. 14, 2023, 11:33 p.m.