---
title: "More Pivot Practice"
date: today
theme: darkly
toc: true
format:
  html: 
    code-overflow: wrap
    toc: true
    toc-title: "Pivoting"
    # hide code?

execute:
  warning: false
  message: false
---

# String data in column names

```{r}
library(tidyverse)
relig_income
```

This dataset contains three variables:

- religion, stored in the rows,
- income spread across the column names, and
- count stored in the cell values.

## Exercise: Tidy the data

# Wider w/fish data

This exercise comes from [the pivot vignette](https://tidyr.tidyverse.org/articles/pivot.html#capture-recapture-data) and concerns the `fish_encounters` dataset.  

```{r}
fish_encounters
```


The `fish_encounters` dataset, contributed by [Myfanwy Johnston](https://fishsciences.github.io/post/visualizing-fish-encounter-histories/), describes when fish swimming down a river are detected by automatic monitoring stations:

## Exercise: Tidy the data

