Extend the first and last real values in a vector to fill in any NA values present.
na.flatfill(x)
x
Modified vector.
Colin A. Smith, csmith@scripps.edu