Open HenrikBengtsson opened 6 years ago
Instead of having to specify either argument dat or segDat for c3co(), e.g.
dat
segDat
c3co()
fit <- c3co(dat = NULL, parameters.grid, segDat = segDat)
by turning c3co() into a generic function we can write c3co() S3 methods methods for dat and segDat classes (Issue #30) so it can be called as:
fit1 <- c3co(dat, parameters.grid) fit2 <- c3co(segDat, parameters.grid)
and S3 methods dispatching with make sure the proper method is called.
Note to self: I just implemented this in commit 05405a9 (part of develop branch) and it works. I should do a new c3co 0.4.1 release but if I forget, this is a note saying develop branch is ok.
Instead of having to specify either argument
dat
orsegDat
forc3co()
, e.g.by turning
c3co()
into a generic function we can writec3co()
S3 methods methods fordat
andsegDat
classes (Issue #30) so it can be called as:and S3 methods dispatching with make sure the proper method is called.