Fill in missing values in a vector, using the last recorded value.
A vector, can be character, numeric, or logical.
A logical vector, the same length as
na.locf in the
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
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.