R Focus
Introduction
π WiFi credentials:
Network: Posit Conf 2024
Password: conf2024
Important locations:
Everyone who comes to learn and enjoy the experience should feel welcome at posit::conf. Posit is committed to providing a professional, friendly and safe environment for all participants at its events, regardless of gender, sexual orientation, disability, race, ethnicity, religion, national origin or other protected class.
This code of conduct outlines the expectations for all participants, including attendees, sponsors, speakers, vendors, media, exhibitors, and volunteers. Posit will actively enforce this code of conduct throughout posit::conf.
https://posit.co/code-of-conduct/
Ryan Johnson
Data Science Advisor @ Posit
Katie Masiello
Solutions Engineer @ Posit
Trevor Nederlof
Solutions Engineer @ Posit
Time | Activity |
---|---|
~9:00 - 10:30 | Workshop Introduction Reading, Cleaning, Writing and Validating Data |
10:30 - 11:00 | Coffee break β |
~11:00 - 12:30 | Creating, Delivering, and Monitoring a model using Vetiver |
12:30 - 1:30 | Lunch break π₯ͺ |
~1:30 - 3:00 | Delivery |
3:00 - 3:30 | Coffee break β |
~3:30 - 5:00 | Advancing your Workflow |
βIβm lost / need helpβ
βIβm done and ready to move alongβ
We will use an end-to-end real-world project to demonstrate workflows and best practices using open source packages and Posit professional tools.
π§° | Add this to your toolbox. |
π£ | I will stand on my soapbox and profess this until I am blue in the face. |
Detour warning. We could get really into this, but thereβs not time today. |
π Submit questions and respond to polls on GitHub Discussions
https://github.com/posit-conf-2024/ds-workflows-r/discussions
β΄οΈ Ready to set sail? π
β΄οΈ Ready to set sail? π
β΄οΈ WSF is the largest operating public ferry system in the US! π€―
π 21 ferries across Puget Sound and the Salish Sea
The Question
Can we predict departure delay for a given route and date?
Our Approach
Use the historical (validated) delay, location, and weather data to create a model that will predict the likelihood of delays!
This workshop will use data from two primary data sources:
β΄οΈ Ferry data (https://wsdot.wa.gov/traffic/api/)
π€οΈ Weather data (https://open-meteo.com/en/docs/historical-weather-api/)
β΄οΈ Ferry data (https://wsdot.wa.gov/traffic/api/)
Data Set | Description | API |
---|---|---|
Vessel verbose | Details about each ferry in the fleet, including name, model, and capacity | https://www.wsdot.wa.gov/ferries/api/ vessels/rest/vesselverbose? apiaccesscode={WSDOT_ACCESS_CODE} |
Vessel history | Historical sailings, including scheduled actual departure time | https://www.wsdot.wa.gov/ferries/api/ vessels/rest/vesselhistory/ {VESSELNAME}/{DATESTART}/{DATEEND}? apiaccesscode={WSDOT_ACCESS_CODE} |
Terminal locations | Terminal names and locations, including latitude and longitude | https://www.wsdot.wa.gov/ferries/ api/terminals/rest/terminallocations? apiaccesscode={WSDOT_ACCESS_CODE} |
π€οΈ Weather data (https://open-meteo.com/en/docs/historical-weather-api/)
Endpoint | Description | API |
---|---|---|
Historical weather | Historical hourly weather at a specified latitude and longitude over a date range | https://archive-api.open-meteo.com/v1/ archive?{params} |
Get Your Environment Set Up
Visit π§ https://ferryland.posit.team π§ to access:
Visit: https://pub.ferryland.posit.team
Make sure you have a GitHub account!
Visit: https://dev.ferryland.posit.team
You do NOT need to re-authenticate with GitHub!
New Session
ds-workflows-r
Create Project
.We will work exclusively within the π materials
directory and associated subfolders.
.
βββ materials
βββ 01-raw-data-write
β βββ ...
β βββ 01-raw-data-write.Rproj
β βββ 01-raw-data-write.qmd
βββ 02-data-exploration
β βββ ...
β βββ 02-data-exploration.Rproj
β βββ 02-data-exploration.qmd
βββ ...
βββ ...
π‘ Within each directory, there is a .Rproj
file.
.Rproj
in the activity folderrenv::restore()
for each activityhttps://github.com/posit-conf-2024/ds-workflows-r
Letβs Get to Work!
Click to go back to Data Science Workflows with Posit Tools - R Focus website β©οΈ