Calculates speed in nautical miles per hour. Based on traipse::track_speed but returns knots not meters per second and sets the first value as the second value. If the length of the vector is one, na values are automatically returned (rather than an error returned by traipse::track_speed)

rb_speed(lon, lat, time)

Arguments

lon

longitude

lat

latitude

time

datetime (POSIXct)

Value

numerical vector in nautical miles per hour