NA fillA fast and efficient by-group method for
"last-observation-carried-forward" NA filling.
roll_na_fill(x, g = NULL, fill_limit = Inf)A filled vector of x the same length as x.
A vector.
An object use for grouping x This may be a vector or data frame for example.
(Optional) maximum number of consecutive NAs to fill
per NA cluster. Default is Inf.
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.