cumret: Compute the cumulative product of a vector

View source: R/calculations.R

cumretR Documentation

Compute the cumulative product of a vector

Description

cumret is a function that computes the cumulative product of a numeric vector x and returns the last element.

Usage

cumret(x)

Arguments

x

Numeric vector

Details

Used in scripts: Robust function: TRUE

Value

cumret returns the last value in the cumulative product vector


AndreSjuve/dretools documentation built on Dec. 4, 2024, 3:12 a.m.