fill_down | R Documentation |
Fill missing value with most recent non-missing value
fill_down(x, empty_string = FALSE, reverse = FALSE)
x |
An atomic vector |
empty_string |
Should empty strings be treated as NA? |
reverse |
Should we fill up instead? |
Sven Halvorson
NM = c(NA, 'Ruidoso', NA, '', NA, 'Corona', NA, 'Roswell')
fill_down(NM)
fill_down(NM, empty_string = TRUE)
fill_down(NM, reverse = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.