Impute missing values using non-commutative functions, i.e. where the order matters.
1 2 3 4 5 6 7
atomic-vector with 0 or more missing values
Non-commutative imputations functions assume that
.x is in the proper order
since the values depend on order. Usually, this is relevant then
.x is part
of a table.
These functions replaces
NA values with the cummulative max of
fun(.x, na.rm=TRUE, ... ) is used. If the function cannot be calculated
.x isn't numeric) then
x is returned unchanged with a warning.
na.cumprod are dangerous since they omit missing
values that may contribute to
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.