Skip to content

Commit 7c86f3d

Browse files
committed
Week 42
1 parent 9f236ae commit 7c86f3d

File tree

6 files changed

+4211
-0
lines changed

6 files changed

+4211
-0
lines changed

Diff for: .Rprofile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source("renv/activate.R")

Diff for: 2024/week 42 - Killer whale encounters.qmd

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Southern Resident Killer Whale Encounters"
3+
format: html
4+
---
5+
6+
7+
```{r, Load libraries & data}
8+
library(pacman)
9+
p_load(tidytuesdayR, tibble, hablar, tidyr, dplyr)
10+
tuesdata <- tidytuesdayR::tt_load(2024, week = 42)
11+
orcas <- tuesdata$orcas
12+
```
13+
14+
15+
```{r}
16+
glimpse(orcas)
17+
18+
19+
orcas |>
20+
mutate(encounter_sequence = replace_na(encounter_sequence, '0')) |>
21+
convert(int(encounter_sequence)) |> View()
22+
summarize(sum(is.na(encounter_sequence)))
23+
```

0 commit comments

Comments
 (0)