hadley / r4ds

R for data science: a book
http://r4ds.hadley.nz
Other
4.51k stars 4.19k forks source link

Incorrect formula for speed #1639

Closed fhaist closed 5 months ago

fhaist commented 5 months ago

In several locations speed in the "flights" is defined as "speed = distance / air_time * 60). However, the air_time variable is in minutes. I assume speed needs to be calculated as MPH. Thus, the corrected formula is "speed = distance / (air_time / 60).