fill_from_past | R Documentation |
If back index ( NA index - back
) is lower than zero then the it is filled with the first value of the data frame.
If the value in the back index is also NA, it iterates backwards until finding a non-NA value.
fill_from_past(tbl, colnames, back = 24)
tbl |
tibble or data.frame, with NA values in some columns |
colnames |
character or vector of characters, column names with NA values |
back |
integer, number of indices (rows) to go back and get the filling value |
tibble or data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.