Description Usage Arguments Details Value See Also Examples

This function recursively carries over values from previous to subsequent elements of a vector

1 |

`x` |
numeric or character, vector to be processed |

`empty` |
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 `x`

.

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
appropriate value.

A vector `x`

with all elements equal to `empty`

replaced
with last non-`empty`

values.

`approx`

for other ways of filling-in the gaps in
vectors

1 2 3 4 |

mbojan/mbtools documentation built on Nov. 9, 2017, 3:21 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.