My other Question about "Add missing xts/zoo data with linear interpolation in R" you can find here Add missing xts/zoo data with linear interpolation in R .
But in general there is one more problem with my data - I do have "wrong" values not making sense:
"2012-04-09 05:03:00",2
"2012-04-09 05:04:00",4
"2012-04-09 05:05:39",-10
"2012-04-09 05:09:00",0
"2012-04-09 05:10:00",1
So the replacement of missing dates works:
y <- merge(y, zoo(,seq(start(y),end(y),by="min")), all=TRUE)
y <- na.approx(y)
But as you can see the -10 makes no sense, and the value is not at min:sec with value 00. I need a solution like na.rm. Thanks!