sfo_passengers | R Documentation |
Monthly summary of number of passengers in San Francisco International Airport (SFO)
sfo_passengers
A data frame with 12 variables.
Activity year and month in YYYYMM format
Airline name for the aircraft operator
The International Air Transport Association (IATA) two-letter designation for the Operating Airline
Airline name that issues the ticket and books revenue for passenger activity
The International Air Transport Association (IATA) two-letter designation for the Published Airline
The flights’ classification by domestic for flights that arrived from or departed to a destination within the United States and international for destinations outside the United States
The flight origin/destination geographic region details
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”)
A categorization of whether a Published Airline is a low-cost carrier or not a low-cost carrier
The airport’s terminal designations at SFO where passenger activity took place
The airport’s boarding area designations at SFO where passenger activity took place
The number of monthly passengers associated with the above attribute fields
The dataset contains the monthly summary of number of passengers in San Francisco International Airport (SFO)
San Francisco data portal (DataSF) website.
data(sfo_passengers)
require(dplyr)
# Get summary of total number of passengers by activity type
# in most recent month
sfo_passengers %>%
filter(activity_period == max(activity_period)) %>%
group_by(activity_type_code) %>%
summarise(total = sum(passenger_count), .groups = "drop")
# Get summary of total number of passengers by
# activity type and geo region in most recent month
sfo_passengers %>%
filter(activity_period == max(activity_period)) %>%
group_by(activity_type_code, geo_region) %>%
summarise(total = sum(passenger_count), .groups = "drop")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.