Displaying 1 result from an estimated 1 matches for "mygarmin".
Did you mean:
myadmin
2009 May 22
5
Need a faster function to replace missing data
...al million vscan records and several thousand garmin records. Is there a better way to do this?
My function and test data:
myvscan<-data.frame(c(1,NA,1.5),times(c("12:00:00","12:14:00","12:20:00")))
names(myvscan)<-c("Latitude","DateTime")
mygarmin<-data.frame(c(20,30,40),times(("12:00:00","12:10:00","12:15:00")))
names(mygarmin)<-c("Latitude","DateTime")
minute.diff<-1/24/12 #Time diff is in days, so this is 5 minutes
for (k in 1:nrow(myvscan))
{
if (is.na(myvscan$Latitude[k]))...