Hello,

 

I problem is in the format of the date, my time series is like this:

 

2006070100      1244     61        62

2006070101      1221     60        60

2006070102      1214     60        60

2006070103      1194     59        59

2006070104      1182     58        58

2006070105      1178     58        58

2006070106      1176     58        58

2006070107      1173     58        58

2006070108      1179     58        59

2006070109      1246     61        62

....

 

When I attempt to format the time like this:

 

A <- read.table("file", sep="\t", col.names=c("date", "my1", "my2", "my3"))

temp <- as.Date(A$date, format="%Y%m%d%H")

temp

I get

  [1] "4403-05-21" "4403-05-22" "4403-05-23" "4403-05-24" "4403-05-25"

  [6] "4403-05-26" "4403-05-27" "4403-05-28" "4403-05-29" "4403-05-30"

 

Another problem is in REGUL, I using the variables created in the extraction of the data but the regulation is not possible

 

REGUL

Ts.regul<-regul(A$date, y=A$my2, xmin=2006070100, n=800, units="hours", frequency=1,

        deltat=1/3600, datemin=NULL, dateformat="m/d/Y", tol=NULL,

        tol.type="both", methods="linear", rule=1, f=0, periodic=FALSE,

        window=(2006080316 - 2006070100)/(800 - 1), split=100, specs=NULL)

 

I think if the question is resolved the function REGUL will work to.

 

Can someone help me? I only now start too use R.

 

 

Thanks for the help in advance,

 

            João Santos


	[[alternative HTML version deleted]]

