Skip to content

Commit

Permalink
Updated airlines and planes for tidyverse#54
Browse files Browse the repository at this point in the history
  • Loading branch information
guslipkin committed Oct 19, 2022
1 parent 2fe0ae6 commit 3a00669
Show file tree
Hide file tree
Showing 6 changed files with 2,679 additions and 3,325 deletions.
2 changes: 1 addition & 1 deletion data-raw/airlines.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library(dplyr)
library(readr)

raw <- read_csv("https://www.transtats.bts.gov/Download_Lookup.asp?Lookup=L_UNIQUE_CARRIERS")
raw <- read_csv("https://www.transtats.bts.gov/Download_Lookup.asp?Y11x72=Y_haVdhR_PNeeVRef")

load("data/flights.rda")

Expand Down
2 changes: 1 addition & 1 deletion data-raw/airlines.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ AA,American Airlines Inc.
AS,Alaska Airlines Inc.
B6,JetBlue Airways
DL,Delta Air Lines Inc.
EV,ExpressJet Airlines Inc.
EV,ExpressJet Airlines LLC d/b/a aha!
F9,Frontier Airlines Inc.
FL,AirTran Airways Corporation
HA,Hawaiian Airlines Inc.
Expand Down
2 changes: 1 addition & 1 deletion data-raw/planes.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(readr)

# Update URL from
# http://www.faa.gov/licenses_certificates/aircraft_certification/aircraft_registry/releasable_aircraft_download/
src <- "http://registry.faa.gov/database/AR062014.zip"
src <- "https://registry.faa.gov/database/ReleasableAircraft.zip"
lcl <- "data-raw/planes"

if (!file.exists(lcl)) {
Expand Down
Loading

0 comments on commit 3a00669

Please sign in to comment.