Learn R Programming

sfo (version 0.1.0)

sfo_passengers: SFO Airport Air Traffic Passenger Statistics

Description

Monthly summary of number of passengers in San Francisco International Airport (SFO)

Usage

sfo_passengers

Arguments

Format

A data frame with 12 variables.

activity_period

Activity year and month in YYYYMM format

operating_airline

Airline name for the operator of aircraft

operating_airline_iata_code

The International Air Transport Association (IATA) two-letter designation for the Operating Airline

published_airline

Airline name that issues the ticket and books revenue for passenger activity

published_airline_iata_code

The International Air Transport Association (IATA) two-letter designation for the Published Airline

geo_summary

Designates whether the passenger activity in relation to SFO arrived from or departed to a location within the United States (<U+201C>domestic<U+201D>), or outside the United States (<U+201C>international<U+201D>) without stops

geo_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 stops

activity_type_code

A description of the physical action a passenger took in relation to a flight, which includes boarding a flight (<U+201C>enplanements<U+201D>), getting off a flight (<U+201C>deplanements<U+201D>) and transiting to another location (<U+201C>intransit<U+201D>)

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 place

boarding_area

The airport boarding area designations at SFO where passenger activity took place

passenger_count

The number of monthly passengers associated with the above attribute fields

Details

The dataset contains the monthly summary of number of passengers in San Francisco International Airport (SFO)

Examples

Run this code
# NOT RUN {
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")

# }

Run the code above in your browser using DataLab