Skip to content

Commit

Permalink
Set replaceZeros for FLI parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 11, 2024
1 parent 4b51119 commit 16744e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ setMethod("replaceZeros", "FLStock", function(object, fraction=0.25) {

#' @rdname assorted-methods
#' @param fraction \code{numeric} with fraction of minimum to replace zeros
setMethod("replaceZeros", "FLIndex", function(object, fraction=0.25) {
setMethod("replaceZeros", "FLI", function(object, fraction=0.25) {
index(object) <- replaceZeros(index(object), fraction)
object
})
Expand Down

0 comments on commit 16744e4

Please sign in to comment.