Description Usage Arguments Details Value Examples
Fill in missing values in a vector, using the last recorded value.
1 |
x |
A vector, can be character, numeric, or logical. |
resetWhen |
A logical vector, the same length as |
Similar to na.locf in the zoo package,
but works for "" in character vectors as well.
A vector the same length as x, with all NAs or ""s replaced by
the last value for the vector.
Note that and missing values at the beginning of the vector will not
be replaced.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.