famuvie / breedR

Statistical methods for forest genetic resources analysts
http://famuvie.github.io/breedR/
GNU General Public License v3.0
31 stars 24 forks source link

Alternative functions for default number of splines knots #73

Open famuvie opened 8 years ago

famuvie commented 8 years ago

breedR.getOption('splines.nok') points to a default internal function determine.n.knots(). However, this function is hard-coded into breedR, and it does not really look at the option value (see splines.R).

  1. Fix this to allow for user-specified functions
  2. Document in ?breedR.option the required inputs and outputs of any alternative function
  3. Write some unit tests to verify that alternative specifications work