Displaying 1 result from an estimated 1 matches for "t_datetimegps".
2010 Nov 08
2
Fuzzy merge using timestamps
...sts, I
got the idea to create a third data frame of both sets of timestamps,
individual identifiers, and a key to determine which dataset they have come
from, then find the breaks to determine which of each dataset should be
paired. the code I have written so far look something like this.
gpsdata$t_datetimegps<-as.POSIXct(gpsdata$t_datetimegps)
urdata$t_datetimeur<-as.POSIXct(urdata$t_datetimeur)
gpsdata$ID1 <- row.names(gpsdata)
urdata$ID2 <- row.names(urdata)
gpsdata$key1 <- rep(0, nrow(gpsdata))
urdata$key2 <- rep(1, nrow(urdata))
checkTimes <- data.frame(ID=c(gpsdata$ID1, ur...