-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'speed' values are NA , but not really #260
Comments
Maybe we could only improve the message. Currently it says that: paste0(na_values, " 'speed' values are NA for shape_id '", shapeid, "'.") Possibly we could also say that such values are (i) in the beginning, (ii) in the end, or (iii) in different parts of the shape. We could also remove the message |
Perhaps this message should only be printed if there are two or more |
I'm finding a strange behavior in
gtfs2gps()
. In the reprex below, I filter a single trip and convert it to a GPS-like table. The problem is that thegtfs2gps()
function prints a message saying'speed' values are NA for shape_id '60-1-b12-1.1.O'
. This message seems to suggest all speed values in this trip areNA
, but they are not. This seems to be a problem in the code. The message should not be printed in this case, right?The function is able to calculate the speed correctly, as seen in the outupt. There is only one
NA
in the last segment (as expected). So the function also prints the messageSome 'speed' values are NA in the returned data.
. As a rule, there will always be oneNA
in the last trip segment, right? So perhaps this message is unecessary. What do you guys think?reprex
The text was updated successfully, but these errors were encountered: