--- type: Guide title: "Work in R" description: "Load the practice data in MESA RStudio Geospatial and check its flags: 2 tutorials to start with, 10 to 15 minutes in all, and more for when you have time." tags: [pathway, work-in-r] status: draft generated: { by: "gen-pathways/1", at: "2026-11-24T00:00:00Z" } stale_after: "2027-05-13T00:00:00Z" sources: - id: pathways resource: "https://github.com/idss-mesa/trainings/blob/main/data/pathways.yml" title: "MESA Trainings pathway data" author: "team:idss-mesa" --- # Work in R Load the practice data in MESA RStudio Geospatial and check its flags. **The essentials: 2 tutorials, 10 to 15 minutes in all.** Take them in order, or start wherever your question is. Nothing is locked. Each point also lists what to take if you have more time. New to the portal? Take [New to MESA](new-to-mesa.md) first. !!! warning "These tutorials are drafts" Each tutorial says at the top how far it has been checked. ## Run and understand *Understand data.* You can say what a dataset holds and where it is incomplete or doubtful, before you compute with it. 1. [Load a file from your Data Store in RStudio](../tutorials/r-load-a-file.md) (5 to 10 minutes) 2. [Tally a quality flag in R](../tutorials/r-tally-a-quality-flag.md) (5 minutes) If you have more time: - [Read the data dictionary before the data, in R](../tutorials/r-read-the-data-dictionary.md) (5 minutes) - [Check a column's range and missing values in R](../tutorials/r-check-range-and-missing.md) (5 minutes) - [Count records per day in R](../tutorials/r-count-records-per-day.md) (5 to 10 minutes) - [Map point data with sf in MESA RStudio Geospatial](../tutorials/map-points-in-rstudio.md) (10 minutes) ## Query and connect You can ask questions across files and tables, and show that combining them did what you meant. If you have more time: - [Reconcile row counts before and after a join in R](../tutorials/r-reconcile-a-join.md) (5 to 10 minutes) - [Query a Parquet file with DuckDB from R](../tutorials/r-query-parquet-with-duckdb.md) (10 minutes) - [Join two tables in R and keep the unmatched rows visible](../tutorials/r-join-and-keep-unmatched.md) (10 minutes) - [Bring two units onto one scale in R](../tutorials/r-convert-units-before-comparing.md) (10 minutes) - [Find and remove a repeated row in R](../tutorials/r-remove-a-repeated-row.md) (5 to 10 minutes) - [Save a query from R so someone else can run it](../tutorials/r-save-a-query.md) (5 to 10 minutes) ## Explore and verify *Explore with AI and verify.* You can work with an AI assistant and test what it tells you against the data. If you have more time: - [Plot a column to spot odd values in R](../tutorials/r-plot-to-spot-odd-values.md) (10 minutes) - [Compare two files that should look alike in R](../tutorials/r-compare-two-files.md) (10 minutes) - [Check that the parts add up to the whole in R](../tutorials/r-check-parts-add-up.md) (10 minutes) - [Check a result a second way in R](../tutorials/r-check-a-result-two-ways.md) (10 minutes) ## Preserve and share You can leave work that someone else can find, understand, and run again. If you have more time: - [Leave an R script someone else can rerun](../tutorials/r-leave-a-rerunnable-script.md) (5 to 10 minutes) - [Write a README for a data folder, from RStudio](../tutorials/r-write-a-readme.md) (10 minutes) - [Record the R and package versions a result depends on](../tutorials/r-record-software-versions.md) (5 minutes) - [Hand your folder to a colleague and have them rerun it, in R](../tutorials/r-hand-over-and-rerun.md) (10 minutes) ## Next - [Choose another pathway](index.md) - [Every tutorial, by pathway point](../pathway.md)