R/tools.R
fillNAForward.Rd
replace NA by value of previous record
fillNAForward(x, firstValue = median(x, na.rm = TRUE))
numeric vector to fill NAs
value to be used for NA at the beginning of x
numeric vector with NAs replaced