In the hflights dataset, how many flights were cancelled in the month of January 2011.
Answers
"According to the database collected from the US Bureau of Transportation Statistics, 227,496 flights were departed from Houston in 2011.
dim(hflights)
#> [1] 227496 21
head(hflights)
#> Year Month DayofMonth DayOfWeek DepTime ArrTime UniqueCarrier
#> 5424 2011 1 1 6 1400 1500 AA
#> 5425 2011 1 2 7 1401 1501 AA
#> 5426 2011 1 3 1 1352 1502 AA
#> 5427 2011 1 4 2 1403 1513 AA
#> 5428 2011 1 5 3 1405 1507 AA
#> 5429 2011 1 6 4 1359 1503 AA
#> FlightNum TailNum ActualElapsedTime AirTime ArrDelay DepDelay Origin
#> 5424 428 N576AA 60 40 -10 0 IAH
#> 5425 428 N557AA 60 45 -9 1 IAH
#> 5426 428 N541AA 70 48 -8 -8 IAH
#> 5427 428 N403AA 70 39 3 3 IAH
#> 5428 428 N492AA 62 44 -3 5 IAH
#> 5429 428 N262AA 64 45 -7 -1 IAH
#> Dest Distance TaxiIn TaxiOut Cancelled CancellationCode Diverted
#> 5424 DFW 224 7 13 0 0
#> 5425 DFW 224 6 9 0 0
#> 5426 DFW 224 5 17 0 0
#> 5427 DFW 224 9 22 0 0
#> 5428 DFW 224 9 9 0 0
#> 5429 DFW 224 6 13 0 0
"