Skip to content

Commit

Permalink
Added [<- method for FLQuantDistr, FLQuant
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 12, 2024
1 parent 29cff09 commit 02b3f73
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions 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.9314
Version: 2.6.20.9315
Authors@R: c(
person("Iago", "Mosqueira", email = "iago.mosqueira@wur.nl",
role = "cre", comment=c(c(ORCID = "0000-0002-3252-0591"))),
Expand Down Expand Up @@ -88,4 +88,4 @@ LazyLoad: Yes
LazyData: No
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
13 changes: 12 additions & 1 deletion R/FLQuantDistr.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ setMethod("-",
}
) # }}}

## "[" {{{
# [ {{{

#' @rdname Extract
#' @aliases [,FLQuantDistr,ANY,ANY,ANY-method
setMethod("[", signature(x="FLQuantDistr"),
Expand Down Expand Up @@ -247,6 +248,16 @@ setMethod("[", signature(x="FLQuantDistr", i="array", j="missing", drop="missing

# }}}

# [<- {{{

setMethod("[<-", signature(x="FLQuantDistr", value="FLQuant"),
function(x, i, j, k, l, m, n, ..., value) {
x@.Data[i,j,k,l,m,n] <- value
return(x)
}
)
# }}}

# sums {{{
#' @rdname dimSummaries
setMethod('yearSums', signature(x='FLQuantDistr'), function(x, na.rm=TRUE) {
Expand Down
2 changes: 1 addition & 1 deletion man/Extract.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/SRModels.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 0 additions & 29 deletions man/mbar.Rd

This file was deleted.

19 changes: 17 additions & 2 deletions man/show.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/summary-methods.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/survey.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02b3f73

Please sign in to comment.