repeat_last | R Documentation |
Replace NA in a vector by the last known value.
repeat_last(x, forward = TRUE, maxgap = Inf, na.rm = FALSE)
x |
Vector. |
forward |
Logical. |
maxgap |
Numeric. |
na.rm |
Logical. |
Vector
Nicolas Mangin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.