gadget-framework / rgadget

Rgadget is a set of useful utilities for gadget
6 stars 12 forks source link

Various changes that were discussed #72

Closed pfrater closed 7 years ago

pfrater commented 7 years ago

I made the same changes that were in the previous pull request. Added suitability helper functions, changed make.gadget.printfile to work with stocks that are not consumed (previously it had printed predatorpreyprinter files for stocks not eaten which resulted in an error). I also added a recruitment length parameter to get.gadget.growth so that this function would include that parameter when calculating age.based growth.

Conveniently, I did not have to change anything in gadget.fit besides adding the associated rec. length parameter for get.gadget.growth. The changes you made took care of the previous issue that I was trying to fix in gadget.fit.