Displaying 1 result from an estimated 1 matches for "sretool".
Did you mean:
retool
2009 Oct 19
1
overloading base function
...definition using code like
## keep old definition of det()
## det.matrix <- det
det <- function(x, ...) UseMethod("det")
det.default <- base::det
which allows me perfectly fine to use det() as determinant of a
matrix, but still loading the library complains with a
> library(sretools)
Loading required package: fdrtool
Attaching package: 'sretools'
The following object(s) are masked from package:base :
det
Is there a recommended way to do this style of "overloading" (albeit a
completely different kind of function), or am I simply not supposed to
use th...