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