Fill with locf
and nocb
fill_both(body, idx, order = c("locf", "nocb"))
body |
The body of the vector. |
---|---|
idx |
the index to replace with. |
order |
Select which filling algorithms will occur first "locf" or "nocb". |
Returns a vector with the same class and attributes as the input vector.
#> Error in asserts_fill(n, fill): object 'fill_both' not found#> Error in fill_both(.x, .y, order = "nocb"): could not find function "fill_both"#> Error in asserts_fill(n, fill): object 'fill_both' not found#> Error in fill_both(.x, .y, order = "nocb"): could not find function "fill_both"