powered by
Replaces "missing" values with preceding values
Fill(x, missing="")
Vector, possibly with missing values
What to replace, typically empty string "" or NA
Vector with replaced values
# NOT RUN { aa <- c("a", "a", "", "b", "", "c", "d", "") Fill(aa) bb <- c("a", "a", NA, "b", NA, "c", "d", NA) Fill(bb, missing=NA) # }
Run the code above in your browser using DataLab