-
Notifications
You must be signed in to change notification settings - Fork 9
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
align column headers with SS3/r4ss and/or within the package? #164
Comments
I think switching to capital letters for the sex labeling of the composition bin is fine if we all agree the ideal naming structure should use capital letters. I will note that @kellijohnson-NOAA and I spoke about whether the input sample size column should be named Once we do decide on the best labeling for column names, we should work to ensure that each package the provides processed composition data are in agreement ({PacFIN.Utilities}, {nwfscSurvey}, {nwfscDiscard}). |
Given that the choice of I like the plan to ensure data in agreement within and among the three pfmc-assessments packages and am happy to help with that effort. |
I should have added that SS3 doesn't care about column names in input files so it would also be possible to go the other direction and modify the objects created by |
Just let me know what you want them to be and I will accommodate. I hope to have this done by EOD but I am going to take a break for a bit. |
@kellijohnson-NOAA, thanks for being so accommodating and getting the changes done so quickly. @chantelwetzel-noaa, what do you think of the "compromise" column below that I've just added to the previous below as a potential standard for the pfmc-assessments packages? The one capital "L" in Regarding the data bins, even if it's female only data, I think having "m" columns for the second group makes more sense than repeating the "f" throughout (or "m" in both blocks for male-only data). For single-sex models with only a single block of data bins,
|
Could compositions for single-sexed models use "u" instead of "l" or "a"? I think this would be more consistent but I don't know if that would create downstream impacts. I will note that {plot_comps} looks for either a f, m, or u before the composition bin number but this function could be easily revised. Otherwise I am okay with your proposed column naming. I agree that capitalizing just Lbin_hi and Lbin_lo does look strange but I understand your concern about it being easily misread if lower case l was used. |
@chantelwetzel-noaa, good idea. Using "u" for single-sex models makes sense to me. Here's the resulting plan, please edit if you see something wrong.
|
@chantelwetzel-noaa, I was working on a scripted workflow yesterday to modify SS3 input files with output from {nwfscSurvey} and found it to be really easy, which is awesome.
However, there were a few differences in the column headers created by
get_expanded_comps()
that required modification to work (see my in-process code at https://github.com/dgbolser/Resample-survey-data/blob/add-to-assessments/resample_survey_bio_data.R#L54-L56). In particular, the nwfscSurvey uses "partition" instead of "part", "input_n" instead of "Nsamp", and capital letters for the observed data (e.g. "F12" instead of "f12"). It only took two lines of code to resolve that difference, but I'm curious if you think it's worth considering making a change to avoid the difference. Given the slower pace of SS3 releases and the disruption already caused by the previous round of r4ss changes (see PIFSCstockassessments/ss3diags#109), I would rather not make the changes on that side even if the names used here are better. We can also just live with the difference.The
nwfscSurvey::SurveyAgeAtLen.fn()
is further away from SS3/r4ss as shown in the table below.Tagging @kellijohnson-NOAA in case there's any value in thinking about this within her ongoing changes to {PacFIN.Utilities}.
It's also OK to not deal with this right now (or ever) and continue to work around the differences.
The text was updated successfully, but these errors were encountered: