Learn R Programming

LEdecomp (version 1.0.4)

rcumsum: top-down cumulative sums, as in the lifetable Tx

Description

Why write x |> rev() |> cumsum() |> rev() when you can just write rcumsum(x)?

Usage

rcumsum(x)

Value

numeric vector the same length as x

Arguments

x

numeric vector