hadley / r4ds

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

12.4.2 proportion_delayed is a bit misleading #1684

Open leorjorge opened 2 months ago

leorjorge commented 2 months ago

Minor issue at https://r4ds.hadley.nz/logicals#sec-numeric-summaries-of-logicals. The explanation and variable name for proportion_delayed seems to be backwards from what is calculated, as it's giving the proportion of flights with less than 60 minute delay. Should probably be renamed proportion_ontime.