I would like to check if the value from a specific column contains the value NA, and if so, fill this NA space with the value from the previous row. I'm still trying to find a family of functions apply.
eg. I want to do this:
Date Balance
2012-01-01 1000
2012-01-02 NA
2012-01-03 NA
2012-01-04 1200
2012-01-05 1215
2012-01-06 NA
at
Date Balance
2012-01-01 1000
2012-01-02 1000
2012-01-03 1000
2012-01-04 1200
2012-01-05 1215
2012-01-06 1215
user1926173
source
share