Learn R Programming

ribiosUtils (version 1.7.7)

cumsumprop: Proportion of cumulative sum over sum

Description

Proportion of cumulative sum over sum

Usage

cumsumprop(x)

Value

the proportion cumulative sum over sum

Arguments

x

Numeric vector

Examples

Run this code

x <- 1:4
cumsumprop(x) ## 0.1, 0.3, 0.6, 1

Run the code above in your browser using DataLab