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

<!-- Generated by scripts/gen_pathways.py from data/pathways.yml. Do not edit this file: change the data and run the script. -->

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](https://idss-mesa.github.io/trainings/pathways/new-to-mesa/) 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](https://idss-mesa.github.io/trainings/tutorials/r-load-a-file/) (5 to 10 minutes)
2. [Tally a quality flag in R](https://idss-mesa.github.io/trainings/tutorials/r-tally-a-quality-flag/) (5 minutes)

If you have more time:

- [Read the data dictionary before the data, in R](https://idss-mesa.github.io/trainings/tutorials/r-read-the-data-dictionary/) (5 minutes)
- [Check a column's range and missing values in R](https://idss-mesa.github.io/trainings/tutorials/r-check-range-and-missing/) (5 minutes)
- [Count records per day in R](https://idss-mesa.github.io/trainings/tutorials/r-count-records-per-day/) (5 to 10 minutes)
- [Map point data with sf in MESA RStudio Geospatial](https://idss-mesa.github.io/trainings/tutorials/map-points-in-rstudio/) (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](https://idss-mesa.github.io/trainings/tutorials/r-reconcile-a-join/) (5 to 10 minutes)
- [Query a Parquet file with DuckDB from R](https://idss-mesa.github.io/trainings/tutorials/r-query-parquet-with-duckdb/) (10 minutes)
- [Join two tables in R and keep the unmatched rows visible](https://idss-mesa.github.io/trainings/tutorials/r-join-and-keep-unmatched/) (10 minutes)
- [Bring two units onto one scale in R](https://idss-mesa.github.io/trainings/tutorials/r-convert-units-before-comparing/) (10 minutes)
- [Find and remove a repeated row in R](https://idss-mesa.github.io/trainings/tutorials/r-remove-a-repeated-row/) (5 to 10 minutes)
- [Save a query from R so someone else can run it](https://idss-mesa.github.io/trainings/tutorials/r-save-a-query/) (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](https://idss-mesa.github.io/trainings/tutorials/r-plot-to-spot-odd-values/) (10 minutes)
- [Compare two files that should look alike in R](https://idss-mesa.github.io/trainings/tutorials/r-compare-two-files/) (10 minutes)
- [Check that the parts add up to the whole in R](https://idss-mesa.github.io/trainings/tutorials/r-check-parts-add-up/) (10 minutes)
- [Check a result a second way in R](https://idss-mesa.github.io/trainings/tutorials/r-check-a-result-two-ways/) (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](https://idss-mesa.github.io/trainings/tutorials/r-leave-a-rerunnable-script/) (5 to 10 minutes)
- [Write a README for a data folder, from RStudio](https://idss-mesa.github.io/trainings/tutorials/r-write-a-readme/) (10 minutes)
- [Record the R and package versions a result depends on](https://idss-mesa.github.io/trainings/tutorials/r-record-software-versions/) (5 minutes)
- [Hand your folder to a colleague and have them rerun it, in R](https://idss-mesa.github.io/trainings/tutorials/r-hand-over-and-rerun/) (10 minutes)

## Next

- [Choose another pathway](https://idss-mesa.github.io/trainings/pathways/)
- [Every tutorial, by pathway point](https://idss-mesa.github.io/trainings/pathway/)
