getDistributionFunction {trdist} | R Documentation |
Determines if the distribution functions are available. This is intended for internal use only.
getDistributionFunction(type, distr, ...)
type |
Character, typically either 'r', 'q', 'p', or 'd'. |
distr |
Character, typically something like 'norm', 'gamma', etc. |
... |
Currently ignored. |
It is determined that paste0(type, dist)
is a function and returns that function. The nature of the returned function is not verified.
Function, the first function in the search path that matches the name paste0(type, dist)
.
fun <- getDistributionFunction(type="q",distr="norm")