search for: nflights

Displaying 1 result from an estimated 1 matches for "nflights".

Did you mean: flights
2011 Jul 17
1
How to speed up interpolation
...ediction error at each minute before landing. This code works, but is very slow, and dominates everything. I tried using split(), but that rapidly ate up my 12 GB of memory. So, is there a better R way of doing this? Thanks, Jim Rome flights = table(df$flightfact[1:dim(df)[1], drop=TRUE]) nflights = length(flights) flights = as.data.frame(flights) times = data.frame() # Split by flight for(i in 1:nflights) { tf = df[as.numeric(df$flightfact)==flights[i,1],] # This flight #check for at least 2 entries if(dim(tf)[1] < 2) { next...