Skip to content
Prev 315595 / 398503 Next

function approx interpolation of time series data sets

On 18/01/2013, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
Latest error:
V1 V2
1 01:23:40  5
2 01:23:45 10
3 01:23:50 12
4 01:23:55  7
V1
1 01:23:42
2 01:23:47
3 01:23:51
4 01:23:54
5 01:23:58
6 01:23:59
Error in textConnection(text) : invalid 'text' argument
Error in textConnection(text) : invalid 'text' argument

Then I tried to create objects differently:

data1zoo<-read.zoo('test1.txt',FUN=times)
01:23:40 01:23:45 01:23:50 01:23:55
       5       10       12        7

data2zoo<-read.zoo('test2.txt',FUN=times)
01:23:42
01:23:47
01:23:51
01:23:54
01:23:58
01:23:59
Error in na.approx.default(object, x = x, xout = xout, na.rm = FALSE,  :
  x and index must have the same length