Learn R Programming

ribiosUtils (version 1.5-6)

cumsumprop: Proportion of cumulative sum over sum

Description

Proportion of cumulative sum over sum

Usage

cumsumprop(x)

Arguments

x

Numeric vector

Value

the proportion cumulative sum over sum

Examples

Run this code
# NOT RUN {
x <- 1:4
cumsumprop(x) ## 0.1, 0.3, 0.6, 1

# }

Run the code above in your browser using DataLab