Closed SarinaAtkinson-NOAA closed 1 year ago
@SarinaAtkinson-NOAA will start building the test .Rdata file. This file as well as the test script will be housed in "TEST" branch. That way we do not have to worry about changes in these files getting accidently pushed or worrying about being out of sync between the fork main and SEFSC main. Automated folders and .Rdata files will be created to house the result from the processing code. This folder and results will be in the gitignore and live only on our personal machines to save repo space.
@AdyanRios-NOAA take at look at this workflow and we can discuss it next week. Steps:
The compareDF package is great and I particularly love the create_output_table() function. It does everything we need so we can keep the script short!
Will do ahead of our next meeting!
Should we move librarian::shelf() to the top, and adding other packages (here, tidyverse, etc), so that they can be run stand alone in a fresh R environment, without any running other scrips first?
Also, I am getting an error in result.
result <- compare_df(mynew_analysis_ready, test, c("CLUSTER")) Error in check_if_comparable(both_tables$df_new, both_tables$df_old, group_col, : The two data frames have different columns!
I know we had agreed to .RData files, but I just remembered that RDS files are better for this purpose. That way when they are read in you intentionally name a single object. When you read in RData files for a single object, the object's name is somewhat less obvious. We can chat more about this on Friday.
Is cluster 365 validated/approved? 365 is a South Atlantic Red Snapper cluster, not one of the ones included in the MH ODM red snapper working paper(Gulf of Mexico).
Updated workflow to save to RDS rather than RDATA.
Identify test clusters from SEDAR working papers. Add as its own script. Save results as .Rdata? So we have something static to compare to. use comparedf()