Description Usage Arguments Details Value
View source: R/clean_functions.R
For a pre-sorted vector, fill each missing value with that of the preceding element.
1 | fill.blanks(x)
|
x |
A pre-sorted vector that may contain |
fill.blanks()
is a wrapper around the zoo::na.locf()
function
in the package zoo
. It can handle both missing values from all data
types including character vectors where missing values are often encoded as
empty strings.
A vector of the same length and type as x
, with all NA
values or empty strings replaced by the value of the preceding element in the
vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.