I have 2 separate files for the dataset before and after filling the gaps, what i want to do is to find the gaps in at least one row (one time series) and plot it and then use the same index/row for the interpolated dataset and plot it too, just to show and grasp the concept of the interpolated method that has been used! and how the data looks before and after the interpolation. The datasets are saved in csv file and the format is:
1st row : 0, 980, 888, 720,987,543
2nd row : 0, 880, 999, NA,NA,NA, 980, 898, 780,987
3rd row : 1, 945, 856, 767,745,883
4th row : 2, 780, 899, 920,890,NA, NA, 998, 870,787
5th row : 2, 800, 900, 822,999,880, 988, 899
. . and so on, and after interpolating:
1st row : 0, 980, 888, 720,987,543
2nd row : 0, 880, 999, 820,990,888, 980, 898, 780,987
3rd row : 1, 945, 856, 767,745,883
4th row : 2, 780, 899, 920,890,988, 780, 998, 870,787
5th row : 2, 800, 900, 822,999,880, 988, 899
where 0,1,2,...,6 are the labels, and the time series starts from the 2nd column. How can we implement that in R?