-
Notifications
You must be signed in to change notification settings - Fork 5
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
generateZerosUsingFO needed #137
Comments
Following discussion this function should create any missing SS rows. The function will need to know which species list should be used for the SS rows it creates. There was a difference of opinion on how this should work:
We will test these options and see how they work in practice before we decide the way forward. |
Should we have a warning if people use this on a hierarchy without a FO? As far as I can tell this information only exist in FO - not in the other tables that can be parent to SS |
A first version of the function is available at generateMissingSSRows(). It compares the FO table to the SS table and aims to create any missing SS rows.
|
Here is an example of how to use the function:
|
I had some problems running the example above. But if it does what I think it does - generating the missing SS rows - the issue is likely solved if we couple it to the improvements I made on generateZerosUsingSL (I worked it up so it includes in SA the species of lonely SS rows), and run the two functions in a sequence. It will be fun to try. |
when FOcatchReg=="All", it is expected that SScatchFraction is either "Catch" OR "Lan"+"Dis". In the latter case, if one is missing the other is to be assumed 0. There is a need for a function that generates those zeros, basically creating a Dis row in SS with SSsampled=Y and generating an entire species list of 0s in SA.
Thoughts
This function could be included in generateZerosUsingSL since it also uses the SL. But it carries out a different procedure so better to keep it separate and explicit. Then create a wrapper that runs both.
Related to: generateZerosUsingSL
The text was updated successfully, but these errors were encountered: