I have a question about interpolating missing values in a dataframe. The
dataframe is in the following, Column C has no data before 2009-01-05 and
after 2009-12-31, how to interpolate data for the blanks? That is to say,
interpolate linearly between these two gaps using 5.4 and 6.1? Thanks.


df
time                A      B     C
2009-01-01    3      4.5
2009-01-02    4      5
2009-01-03    3.3   6
2009-01-04    4.1   7
2009-01-05    4.4   6.2   5.4
...

2009-11-20    5.1   5.5   6.1
2009-11-21    5.4   4
...
2009-12-31    4.5   6

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to