Displaying 1 result from an estimated 1 matches for "zoo_test2".
Did you mean:
zoo_test
2008 Mar 06
1
can't merge zoo ojects and convert to ts (been trying for 2 days)
...o order by 2) create zoo
object.
#####Vector to order by:
>zoo_test<- as.chron(strptime(ttest$Ruta_datetime_start, format="%d/%m/%Y
%H"), format = c(dates = "Y-m-d ", times = "H:M:S"))
zoo_test
[1] (2004-Apr-28 08:00:00) (2004-Apr-28 13:00:00)
#####Zoo object:
zoo_test2<-zoo(ttest$Minutos.de.viaje,zoo_test)
zoo_test2
(2004-Apr-28 08:00:00) (2004-Apr-28 13:00:00)
125 295
#####Merge (need to approximate NAs so can change to ts?)
x<-na.approx(merge(zooreg_time,zoo_test2))
x
(2004-Apr-28 08:00:00) (2004-Apr-28 09:00:00) (...