You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/data.R
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,16 @@
3
3
#' @format A data frame with 12 variables.
4
4
#' \describe{
5
5
#' \item{activity_period}{Activity year and month in YYYYMM format}
6
-
#' \item{operating_airline}{Airline name for the operator of aircraft}
6
+
#' \item{operating_airline}{Airline name for the aircraft operator}
7
7
#' \item{operating_airline_iata_code}{The International Air Transport Association (IATA) two-letter designation for the Operating Airline}
8
8
#' \item{published_airline}{Airline name that issues the ticket and books revenue for passenger activity}
9
9
#' \item{published_airline_iata_code}{The International Air Transport Association (IATA) two-letter designation for the Published Airline}
10
-
#' \item{geo_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 stops}
11
-
#' \item{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}
10
+
#' \item{geo_summary}{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}
11
+
#' \item{geo_region}{The flight origin/destination geographic region details}
12
12
#' \item{activity_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”)}
13
13
#' \item{price_category_code}{A categorization of whether a Published Airline is a low-cost carrier or not a low-cost carrier}
14
-
#' \item{terminal}{The airport terminal designations at SFO where passenger activity took place}
15
-
#' \item{boarding_area}{The airport boarding area designations at SFO where passenger activity took place}
14
+
#' \item{terminal}{The airport’s terminal designations at SFO where passenger activity took place}
15
+
#' \item{boarding_area}{The airport’s boarding area designations at SFO where passenger activity took place}
16
16
#' \item{passenger_count}{The number of monthly passengers associated with the above attribute fields}
17
17
#'
18
18
#' }
@@ -45,17 +45,17 @@
45
45
#' @format A data frame with 14 variables.
46
46
#' \describe{
47
47
#' \item{activity_period}{Activity year and month in YYYYMM format}
48
-
#' \item{operating_airline}{Airline name for the operator of aircraft}
48
+
#' \item{operating_airline}{Airline name for the aircraft operator}
49
49
#' \item{operating_airline_iata_code}{The International Air Transport Association (IATA) two-letter designation for the Operating Airline}
50
50
#' \item{published_airline}{Airline name that issues the ticket and books revenue for passenger activity}
51
51
#' \item{published_airline_iata_code}{The International Air Transport Association (IATA) two-letter designation for the Published Airline}
52
-
#' \item{geo_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 stops}
53
-
#' \item{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}
54
-
#' \item{landing_aircraft_type}{A designation for three types of aircraft that landed at SFO, which includes passenger aircraft, cargoonly aircraft (“freighters”) or combination aircraft (“combi”)}
55
-
#' \item{aircraft_body_type}{A designation that is independent from Landing Aircraft Type, which determines whether commercial aircraft landed at SFO is a wide bodyjet, narrowbody jet, regionaljet or a propeller operated aircraft}
52
+
#' \item{geo_summary}{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}
53
+
#' \item{geo_region}{ The flight origin/destination geographic region details}
54
+
#' \item{landing_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”)}
55
+
#' \item{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 aircraft}
56
56
#' \item{aircraft_manufacturer}{Manufacturer name for the aircraft that landed at SFO}
57
57
#' \item{aircraft_model}{Model designation of aircraft by the manufacturer}
58
-
#' \item{aircraft_version}{Variations of the Aircraft Model, also known as the “dash number”, designated by the manufacturer to segregate unique versions of the same model}
58
+
#' \item{aircraft_version}{Variations of the Aircraft Model, also known as the “dash number”, designated by the manufacturer to segregate unique versions of the same model}
59
59
#' \item{landing_count}{The number of aircraft landings associated with General and Landings Statistics attribute fields}
60
60
#' \item{total_landed_weight}{The aircraft landed weight (in pounds) associated with General and Landings Statistics attribute fields}
The **sfo** package provides summary statistics of the monthly passengers and landing in San Francisco International Airport (SFO) between 2005 and 2020.
47
-
45
+
The **sfo** package summarizes the monthly air passengers and landings at San Francisco International Airport (SFO) between 2005 and 2022.
48
46
Data source: San Francisco data portal - [DataSF API](https://datasf.org/opendata/)
The **sfo** package provides the following two datasets:
70
68
71
69
*`sfo_passengers` - air traffic passengers statistics
72
-
*`sfo_stats` - air traffic landing statistics
70
+
*`sfo_stats` - air traffic landings statistics
73
71
74
-
More information about the datasets available on the following [vignette](https://ramikrispin.github.io/sfo/articles/v1_intro.html).
72
+
More information about the datasets is available in the following [vignette](https://ramikrispin.github.io/sfo/articles/v1_intro.html).
75
73
76
74
### Examples
77
75
78
-
The `sfo_passengers` dataset provides a monthly summary of the number of passengers in SFO airport by different categories (such as terminal, geo, type, etc.):
76
+
The `sfo_passengers` dataset provides monthly summary of the number of passengers in SFO airport by different categories (such as terminal, geo, type, etc.):
79
77
80
78
```{r }
81
79
library(sfo)
@@ -85,7 +83,7 @@ data("sfo_passengers")
85
83
head(sfo_passengers)
86
84
```
87
85
88
-
The `sfo_stats` dataset provides a monthly statistics on the air traffic landing at SFO airport:
86
+
The `sfo_stats` dataset provides monthly statistics on the air traffic landing at SFO airport:
89
87
90
88
```{r }
91
89
data("sfo_stats")
@@ -107,7 +105,7 @@ sfo_passengers %>%
107
105
```
108
106
109
107
110
-
The `sankey_ly` function enables us to plot the distribution of a numeric variable by multiple categorical variables. The following example shows the distribution of the total United Airlines passengers during 2019 by terminal, travel type (domestic and international), geo, and travel direction (deplaned, enplaned, and transit):
108
+
The `sankey_ly` function enables us to plot the distribution of a numeric variable by multiple categorical variables. The following example shows the distribution of the total United Airlines passengers during 2019 by a terminal, travel type (domestic and international), geo, and travel direction (deplaned, enplaned, and transit):
The following Sankey plot demonstrate the distribution of number of landing in SFO by region and aircraft type, manufacturer, and body type during Sep 2020:
176
+
The following Sankey plot demonstrates the distribution of the number of landing in SFO by region and aircraft type, manufacturer, and body type during Dec 2022:
0 commit comments