| rollprod | R Documentation |
Rolling product
rollprod(
x,
width,
align = c("right", "left", "center"),
fill = NA,
partial = FALSE,
na.rm = FALSE
)
x |
An atomic vector. |
width |
Target width, in characters or rolling-window size depending on the function. |
align |
Alignment of the rolling window relative to each position. |
fill |
Value used for positions where no window/result is available. |
partial |
Allow partial windows at the boundaries. |
na.rm |
Drop missing values before computing the result. |
A numeric vector of rolling products.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.