Skip to content

Commit

Permalink
Turning 0 and 1 to logical in conf2ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 19, 2023
1 parent 6b59632 commit 9536f22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/FLR2SAM.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ conf2ctrl <- function(conf,data){
ctrl@fracMixObs <- conf$fracMixObs
ctrl@constRecBreaks <- conf$constRecBreaks
ctrl@predVarObsLink <- conf$predVarObsLink
ctrl@stockWeightModel <- conf$stockWeightModel
ctrl@stockWeightModel <- as.logical(conf$stockWeightModel)
ctrl@stockWeightMean <- conf$keyStockWeightMean
ctrl@stockWeightObsVar <- conf$keyStockWeightObsVar
ctrl@catchWeightModel <- conf$catchWeightModel
ctrl@catchWeightModel <- as.logical(conf$catchWeightModel)
ctrl@catchWeightMean <- conf$keyCatchWeightMean
ctrl@catchWeightObsVar <- conf$keyCatchWeightObsVar
ctrl@maturityModel <- conf$matureModel
ctrl@maturityModel <- as.logical(conf$matureModel)
ctrl@maturityMean <- conf$keyMatureMean
ctrl@mortalityModel <- conf$mortalityModel
ctrl@mortalityModel <-as.logical(conf$mortalityModel)
ctrl@mortalityMean <- conf$keyMortalityMean
ctrl@mortalityObsVar <- conf$keyMortalityObsVar
ctrl@XtraSd <- conf$keyXtraSd
Expand Down
Empty file added R/conf
Empty file.

0 comments on commit 9536f22

Please sign in to comment.