f_fill | R Documentation |
NA
values forwards and backwardsFill NA
values forwards and backwards
f_fill(
data,
...,
.by = NULL,
.cols = NULL,
.direction = c("forwards", "backwards"),
.fill_limit = Inf,
.new_names = "{.col}"
)
data |
A data frame. |
... |
Cols to fill |
.by |
Cols to group by for this operation.
Specified through |
.cols |
(Optional) alternative to |
.direction |
Which direction should |
.fill_limit |
The maximum number of consecutive |
.new_names |
A name specification for the names of filled variables.
The default |
A data frame with NA
values filled forward or backward.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.