fill_with_last {clinpubr} | R Documentation |
Fill NA values with the last valid value
Description
Fill NA values with the last valid value. Can be used to fill excel combined cells.
Usage
fill_with_last(x)
Arguments
x |
A vector. |
Value
A vector.
Examples
fill_with_last(c(1, 2, NA, 4, NA, 6))
[Package clinpubr version 1.0.1 Index]