Skip to content

Commit

Permalink
combine(FLoem) mde safer
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 16, 2024
1 parent 23f05c3 commit 73604f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: FLCore
Title: Core Package of FLR, Fisheries Modelling in R
Version: 2.6.20.9317
Version: 2.6.20.9318
Authors@R: c(
person("Iago", "Mosqueira", email = "iago.mosqueira@wur.nl",
role = "cre", comment=c(c(ORCID = "0000-0002-3252-0591"))),
Expand Down
10 changes: 8 additions & 2 deletions R/genericMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -1251,15 +1251,21 @@ setGeneric("distribution", function(object, ...)
setGeneric("distribution<-", function(object, ..., value)
standardGeneric("distribution<-"))

# combine
# combine {{{
setGeneric('combine', function(x, y, ...)
standardGeneric('combine'))

setMethod('combine', signature(x='NULL', y='NULL'),
function(x,y,...) {
function(x, y, ...) {
return(NULL)
})

setMethod('combine', signature(x='list', y='list'),
function(x, y, ...)
c(x, y, list(...))
)
# }}}

# jackknife
setGeneric("jackknife", function(object, ...)
standardGeneric("jackknife"))
Expand Down

0 comments on commit 73604f6

Please sign in to comment.