Skip to content

Commit

Permalink
Total run size data request from Andrew Munroe
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreimer committed Apr 13, 2024
1 parent 197a974 commit b7e98e3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions data_requests/Munroe_run.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "Andrew Munroe Total Run Size"
author: "Adam Reimer"
date: "2024-02-02"
output: html_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE)
```

```{r, include=FALSE}
library(magrittr)
library(ggplot2)
source("..\\functions\\get.R")
source("..\\functions\\internal.R")
source("..\\functions\\table.R")
data_names <- list.files(path="..\\data")
lapply(data_names, function(x) load(paste0("..\\data\\", x), .GlobalEnv))
get_ids(year_range = 1979:2023)
post_new <- readRDS("..\\posts\\SuChinook_10242023.rds")
```

```{r}
tab_state <- table_state(post_new, "bystate")
knitr::kable(tab_state[[1]])
```

```{r}
tabN <- post_new$q50$N
colnames(tabN) <- stock_id
tabN_df <- as.data.frame(tabN) %>%
dplyr::mutate(year = year_id)
writexl::write_xlsx(tabN_df, ".\\Munroe_TotalRun.xlsx")
```

0 comments on commit b7e98e3

Please sign in to comment.