| roll_na_fill | R Documentation |
NA fillA fast and efficient by-group method for
"last-observation-carried-forward" NA filling.
roll_na_fill(x, g = NULL, fill_limit = Inf)
x |
A vector. |
g |
An object use for grouping x This may be a vector or data frame for example. |
fill_limit |
(Optional) maximum number of consecutive NAs to fill
per |
When supplying groups using g, this method uses radixorder(g) to
specify how to loop through x, making this extremely efficient.
When x contains zero or all NA values, then x is returned with no copy
made.
A filled vector of x the same length as x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.