{"id":32206407,"url":"https://github.com/ropensci/skynet","last_synced_at":"2026-04-01T23:34:25.196Z","repository":{"id":56935998,"uuid":"86709909","full_name":"ropensci/skynet","owner":"ropensci","description":"Generates networks from BTS DB1B/T-100 data","archived":false,"fork":false,"pushed_at":"2024-09-12T13:29:06.000Z","size":64046,"stargazers_count":12,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-22T05:36:37.247Z","etag":null,"topics":["air-transport","bts","bureau-of-transport-statistics","db1b","peer-reviewed","r","r-package","rita","rstats","skynet","t100","transtats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/skynet","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-03-30T14:08:11.000Z","updated_at":"2025-10-08T23:10:53.000Z","dependencies_parsed_at":"2024-09-10T15:06:29.901Z","dependency_job_id":"fe2b0209-3b84-45a8-ba60-a461024878c0","html_url":"https://github.com/ropensci/skynet","commit_stats":{"total_commits":213,"total_committers":2,"mean_commits":106.5,"dds":"0.0046948356807511304","last_synced_commit":"255d83ac1ed0b3e98980e5762014514ec5e6c6af"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci/skynet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fskynet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fskynet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fskynet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fskynet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/skynet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fskynet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["air-transport","bts","bureau-of-transport-statistics","db1b","peer-reviewed","r","r-package","rita","rstats","skynet","t100","transtats"],"created_at":"2025-10-22T05:24:46.638Z","updated_at":"2026-04-01T23:34:25.170Z","avatar_url":"https://github.com/ropensci.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# skynet \u003cimg src=\"man/figures/logo.png\" align=\"right\" /\u003e\n\n![Build Status](https://travis-ci.org/ropensci/skynet.svg?branch=master)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/skynet)](https://cran.r-project.org/package=skynet)\n![](https://cranlogs.r-pkg.org/badges/skynet?color=brightgreen)\n[![Coverage status](https://codecov.io/gh/ropensci/skynet/branch/master/graph/badge.svg)](https://codecov.io/github/ropensci/Skynet?branch=master)\n[![](https://badges.ropensci.org/214_status.svg)](https://github.com/ropensci/software-review/issues/214)\n\n# Overview\n\nThe rationale behind Skynet, is to provide researchers with a unifying tool overcoming some of the challenges faced when dealing with the Bureau of Transport Statistics, DB1B and T100 data. \nThe DB1B data consists of 2 sets of files, Coupon and Ticket. They can be both downloaded at https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=289 and https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=272 respectively while the T100 data can be found here https://www.transtats.bts.gov/Tables.asp?DB_ID=111.\n\n## Note\n\nTo comply with R syntax guidelines, we changed to a clearer function naming from version 1.2.0. Deprecated functions are still present, but will be removed for the next versions.\n\n## Note on importing from other data sources\n\nWe are constantly working on new functions that allow importing data from different data sources. However, as we can't cover them all at least for now, in case you would like to work with a database which is not covered by skynet, simply create a data.frame with the following variables: \n\n`itin_id, mkt_id, seq_num, origin_mkt_id, origin, year, quarter, dest_mkt_id, dest, trip_break, op_carrier, distance, gateway, roundtrip, itin_yield, passengers, itin_fare, bulk_fare, distance_full` \n\nFor more information on the variables, please visit https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=289 and https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=272.\n\nSkynet allows that some of this variables have a 0 or NA value, however, if you're working with a specific dataset which doesn't allow an easy conversion to our format, please feel free to create an issue so we can look into it. Please make sure to include at least one small example of a csv file with the data you're trying to import.\n\n## Installation\n\nYou can install skynet from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"FilipeamTeixeira/skynet\")\n```\n\n## Import Data\n\nTo import data, simply type `import_db1b()` or `import_t100()` including the path to your desired file.  \n**Note**: The Coupon file should take the first argument while the Ticket file should take the second argument.\n    \n```{r, eval=FALSE}\n library(skynet)\n import_db1b(\"folder/Coupon 2016Q1.csv\", \"folder/Ticket 2016Q1.csv\")\n import_t100(\"folder/T100_2016.csv\")\n```\n\nThe BTS DB1B data consists of 2 sets of files, `Coupon` and `Ticket`.\nThey can be both downloaded at https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=289 and https://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=272 respectively.\n\nDespite being possible to download the complete zipped file, which includes all variables, due to its size, we recommend selecting the following set. \n\n\n```{r, echo=FALSE, message=FALSE, warning=FALSE, results='asis'}\nknitr::kable(data.frame(Coupon = c(\"Itinerary ID\", \"Market ID\", \"Sequence Number\", \"Origin City Market ID\",  \n\"Origin\", \"Year\", \"Quarter\", \"Destination City Market ID\", \"Destination\", \"Trip Break\", \"Operating Carrier\", \n\"Distance\", \"Gateway\"),\nTicket = c(\"Itinerary ID\", \"Roundtrip\", \"Itinerary Yield\", \"Passengers\",\n\"Itinerary Fare\", \"Bulkfare Indicator\", \"Distance\",\"\",\"\",\"\",\"\",\"\",\"\")))\n```\n\nSince version 1.0.2 that the import method changed being the `netimport()` function no longer available.\nWhen importing from the prezipped DB1B file, just add the argument `zip = TRUE` to the `import_db1b()` function. This does not apply to the T100 file which can be simply imported by typing `import_t100()`.\nIn order to save space, it is possible as well to import the prezipped file, and convert it to a smaller file with only the necessary variables, with the function `convert_raw()`. \n\n\n## Example\n\nTo generate a directed network, please type:\n\n    library(skynet)\n    # For DB1B data\n    import_db1b(\"folder/Coupon_2011Q1.csv\", \"folder/Ticket_2011Q1.csv\")\n    make_net_dir(OD_2011Q1, disp = TRUE, alpha = 0.05)\n\n    # For T100 data\n    import_t100(\"folder/T100_2011.csv\")\n    make_net_dir(T100_2011Q1, disp = TRUE, alpha = 0.05)\n\n\n[![ropensci_footer](https://ropensci.org/public_images/ropensci_footer.png)](https://ropensci.org)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fskynet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fropensci%2Fskynet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fskynet/lists"}