Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catches #1

Open
BenWilliams-NOAA opened this issue Jun 16, 2023 · 0 comments
Open

catches #1

BenWilliams-NOAA opened this issue Jun 16, 2023 · 0 comments

Comments

@BenWilliams-NOAA
Copy link
Collaborator

BenWilliams-NOAA commented Jun 16, 2023

catches_new <- read.csv(here('2023','data','raw','fsh_catch_data.csv'))

@mkapur-noaa

Looking at this line - the majority of the inputs are already taken care of in the afscdata/afscassess code - can simply use:

vroom::vroom(here::here(year, "data", "output", "fsh_catch.csv")) %>% 
  dplyr::mutate(seas = 1, fleet=1, cv=0.01) %>% 
  dplyr::select(Yr=year, seas, fleet, catch, cv) %>% 
  vroom::vroom_write(here::here(year, "data", "for_ss", paste0(Sys.Date(),'-catches.csv')), ",")
  • Note that I'm not a fan of the date appended to the file name - reduces downstream flexibility (though I understand why you may want it)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant