powered by
Fill NA values with the last valid value. Can be used to fill excel combined cells.
fill_with_last(x)
A vector.
fill_with_last(c(1, 2, NA, 4, NA, 6))
Run the code above in your browser using DataLab