-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tab_brood. NOAA GOA_ESA data request filled.
Using this function for a data request an noticed some errors. Fixed those but still need to work on this repository. Use cautiously.
- Loading branch information
1 parent
a59adc1
commit 975d40b
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generate a brood table for a NOAA data request associated with the GOA ESA petition. | ||
|
||
# Author: Adam Reimer | ||
# Version: 2024-09-09 | ||
|
||
# Packages | ||
packs <- c("tidyverse", "coda", "writexl") | ||
lapply(packs, require, character.only = TRUE) | ||
|
||
# Source functions | ||
function_files <- list.files(path=".\\functions") | ||
lapply(function_files, function(x) source(paste0(".\\functions\\", x))) | ||
|
||
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | ||
|
||
# Read data --------------------------------------------------------------- | ||
post <- readRDS(".\\output\\post_1977on") | ||
|
||
# * Format data ---------------------------------------------------------- | ||
|
||
# Analysis ---------------------------------------------------------------- | ||
|
||
# Results ----------------------------------------------------------------- | ||
tbl_brood <- table_brood(stats_dat = get_summary(post$samples)) | ||
knitr::kable(tbl_brood, escape = FALSE, align = "r") | ||
write_xlsx(list( | ||
"Anchor" = tbl_brood), | ||
".\\data_requests\\GOA_ESA_brood.xlsx") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters