The sfo package provides a monthly statistics of San Francisco International (SFO) airport air traffic. That includes the following two datasets:
sfo_passengers
- air traffic passengers statisticssfo_stats
- air traffic landing statisticsThe sfo_passengers
dataset focusing on monthly air passengers statistics, and it contains the following fields:
activity_period
- Activity year and month in YYYYMM formatoperating_airline
-Airline name for the operator of aircraftoperating_airline_iata_code
-The International Air Transport Association (IATA) two-letter designation for the Operating Airlinepublished_airline
-Airline name that issues the ticket and books revenue for passenger activitypublished_airline_iata_code
-The International Air Transport Association (IATA) two-letter designation for the Published Airlinegeo_summary
-Designates whether the passenger activity in relation to SFO arrived from or departed to a location within the United States (“domestic”), or outside the United States (“international”) without stopsgeo_region
-Provides a more detailed breakdown of the GEO Summary field to designate the region in the world where activity in relation to SFO arrived from or departed to without stopsactivity_type_code
-A description of the physical action a passenger took in relation to a flight, which includes boarding a flight (“enplanements”), getting off a flight (“deplanements”) and transiting to another location (“intransit”)price_category_code
-A categorization of whether a Published Airline is a low-cost carrier or not a low-cost carrier}terminal
-The airport terminal designations at SFO where passenger activity took placeboarding_area
-The airport boarding area designations at SFO where passenger activity took placepassenger_count
-The number of monthly passengers associated with the above attribute fieldsData source: San Francisco data portal (DataSF) API
library(sfo)
data("sfo_passengers")
str(sfo_passengers)
#> 'data.frame': 22576 obs. of 12 variables:
#> $ activity_period : int 202009 202009 202009 202009 202009 202009 202009 202009 202009 202009 ...
#> $ operating_airline : chr "United Airlines" "United Airlines" "United Airlines" "United Airlines" ...
#> $ operating_airline_iata_code: chr "UA" "UA" "UA" "UA" ...
#> $ published_airline : chr "United Airlines" "United Airlines" "United Airlines" "United Airlines" ...
#> $ published_airline_iata_code: chr "UA" "UA" "UA" "UA" ...
#> $ geo_summary : chr "International" "International" "International" "International" ...
#> $ geo_region : chr "Mexico" "Mexico" "Mexico" "Mexico" ...
#> $ activity_type_code : chr "Enplaned" "Enplaned" "Enplaned" "Deplaned" ...
#> $ price_category_code : chr "Other" "Other" "Other" "Other" ...
#> $ terminal : chr "Terminal 3" "Terminal 3" "International" "International" ...
#> $ boarding_area : chr "F" "E" "G" "G" ...
#> $ passenger_count : int 6712 396 376 6817 3851 3700 71 83 65 45 ...
head(sfo_passengers)
#> activity_period operating_airline operating_airline_iata_code
#> 1 202009 United Airlines UA
#> 2 202009 United Airlines UA
#> 3 202009 United Airlines UA
#> 4 202009 United Airlines UA
#> 5 202009 United Airlines UA
#> 6 202009 United Airlines UA
#> published_airline published_airline_iata_code geo_summary geo_region
#> 1 United Airlines UA International Mexico
#> 2 United Airlines UA International Mexico
#> 3 United Airlines UA International Mexico
#> 4 United Airlines UA International Mexico
#> 5 United Airlines UA International Europe
#> 6 United Airlines UA International Europe
#> activity_type_code price_category_code terminal boarding_area
#> 1 Enplaned Other Terminal 3 F
#> 2 Enplaned Other Terminal 3 E
#> 3 Enplaned Other International G
#> 4 Deplaned Other International G
#> 5 Enplaned Other International G
#> 6 Deplaned Other International G
#> passenger_count
#> 1 6712
#> 2 396
#> 3 376
#> 4 6817
#> 5 3851
#> 6 3700
The sfo_stats
dataset focusing on monthly landing statistics, and it contains the following fields:
activity_period
- Activity year and month in YYYYMM formatoperating_airline
-Airline name for the operator of aircraftoperating_airline_iata_code
-The International Air Transport Association (IATA) two-letter designation for the Operating Airlinepublished_airline
-Airline name that issues the ticket and books revenue for passenger activitypublished_airline_iata_code
-The International Air Transport Association (IATA) two-letter designation for the Published Airlinegeo_summary
-Designates whether the passenger activity in relation to SFO arrived from or departed to a location within the United States (“domestic”), or outside the United States (“international”) without stopsgeo_region
-Provides a more detailed breakdown of the GEO Summary field to designate the region in the world where activity in relation to SFO arrived from or departed to without stopslanding_aircraft_type
- A designation for three types of aircraft that landed at SFO, which includes passenger aircraft, cargo only aircraft (“freighters”) or combination aircraft (“combi”)aircraft_body_type
- A designation that is independent from Landing Aircraft Type, which determines whether commercial aircraft landed at SFO is a wide body jet, narrow body jet, regional jet or a propeller operated aircraftaircraft_manufacturer
- Manufacturer name for the aircraft that landed at SFOaircraft_model
- Model designation of aircraft by the manufactureraircraft_version
- Variations of the Aircraft Model, also known as the “dash number”, designated by the manufacturer to segregate unique versions of the same modellanding_count
- The number of aircraft landings associated with General and Landings Statistics attribute fieldstotal_landed_weight
- The aircraft landed weight (in pounds) associated with General and Landings Statistics attribute fieldsData source: San Francisco data portal (DataSF) API
library(sfo)
data("sfo_stats")
str(sfo_stats)
#> 'data.frame': 25429 obs. of 14 variables:
#> $ activity_period : int 202009 202009 202009 202009 202009 202009 202009 202009 202009 202009 ...
#> $ operating_airline : chr "United Airlines" "United Airlines" "United Airlines" "United Airlines" ...
#> $ operating_airline_iata_code: chr "UA" "UA" "UA" "UA" ...
#> $ published_airline : chr "United Airlines" "United Airlines" "United Airlines" "United Airlines" ...
#> $ published_airline_iata_code: chr "UA" "UA" "UA" "UA" ...
#> $ geo_summary : chr "International" "Domestic" "International" "Domestic" ...
#> $ geo_region : chr "Mexico" "US" "Canada" "US" ...
#> $ landing_aircraft_type : chr "Passenger" "Passenger" "Passenger" "Passenger" ...
#> $ aircraft_body_type : chr "Narrow Body" "Narrow Body" "Narrow Body" "Narrow Body" ...
#> $ aircraft_manufacturer : chr "Airbus" "Boeing" "Boeing" "Boeing" ...
#> $ aircraft_model : chr "A320" "B738" "B738" "B738" ...
#> $ aircraft_version : chr "-" "-" "-" "-" ...
#> $ landing_count : int 37 14 1 251 3 553 1 13 52 102 ...
#> $ total_landed_weight : int 5261326 2048200 146300 36721300 438900 86986900 157300 2044900 10296000 22848000 ...
head(sfo_stats)
#> activity_period operating_airline operating_airline_iata_code
#> 1 202009 United Airlines UA
#> 2 202009 United Airlines UA
#> 3 202009 United Airlines UA
#> 4 202009 United Airlines UA
#> 5 202009 United Airlines UA
#> 6 202009 United Airlines UA
#> published_airline published_airline_iata_code geo_summary geo_region
#> 1 United Airlines UA International Mexico
#> 2 United Airlines UA Domestic US
#> 3 United Airlines UA International Canada
#> 4 United Airlines UA Domestic US
#> 5 United Airlines UA International Mexico
#> 6 United Airlines UA Domestic US
#> landing_aircraft_type aircraft_body_type aircraft_manufacturer aircraft_model
#> 1 Passenger Narrow Body Airbus A320
#> 2 Passenger Narrow Body Boeing B738
#> 3 Passenger Narrow Body Boeing B738
#> 4 Passenger Narrow Body Boeing B738
#> 5 Passenger Narrow Body Boeing B738
#> 6 Passenger Narrow Body Boeing B739
#> aircraft_version landing_count total_landed_weight
#> 1 - 37 5261326
#> 2 - 14 2048200
#> 3 - 1 146300
#> 4 - 251 36721300
#> 5 - 3 438900
#> 6 - 553 86986900