This function recursively carries over values from previous to subsequent elements of a vector
numeric or character, vector to be processed
numeric or character scalar, value to be replaced
The function recursively imputes to all values of
x that are equal to
empty the values of the preceding elements of
If the firs value of
x is equal to
empty, then an error is
returned. For now you should take care of it by manually imputing the
x with all elements equal to
with last non-
approx for other ways of filling-in the gaps in
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.