cumsum_frac: Cumulative fraction

View source: R/cumsum_frac.R

cumsum_fracR Documentation

Cumulative fraction

Description

Returns a vector whose elements are the cumulative fraction of the total.

Usage

cumsum_frac(x)

Arguments

x

Numeric vector.

Value

Vector of same length as x An NA value in x causes the corresponding and following elements of the return value to be NA.

Author(s)

Shona Wilde.


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.