hadley / r4ds

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

Incorrect formula for speed #1639

Closed fhaist closed 8 months ago

fhaist commented 8 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).