distroptions

0th

Percentile

functions to change the global variables of the package `distr'

With distroptions and getdistrOption you may inspect and change the global variables used by package distr.

Keywords
distribution
Usage
distroptions(...)
getdistrOption(x)
Arguments
...
any options can be defined, using name = value or by passing a list of such tagged values.
x
a character string holding an option name.
Details

Invoking distroptions() with no arguments returns a list with the current values of the options. To access the value of a single option, one should use getdistrOption("WarningSim"), e.g., rather than distroptions("WarningSim") which is a list of length one.

Value

  • distroptions() returns a list of the global options of distr. distroptions("RtoDPQ.e") returns the global option RtoDPQ.e as a list of length 1. distroptions("RtoDPQ.e" = 3) sets the value of the global option RtoDPQ.e to 3. getdistrOption("RtoDPQ.e") the current value set for option RtoDPQ.e.

See Also

options, getOption

Aliases
  • distroptions
  • getdistrOption
  • DefaultNrGridPoints
  • DistrResolution
  • TruncQuantile
  • WarningSim
  • WarningArith
  • DefaultNrFFTGridPointsExponent
  • RtoDPQ.e
  • WarningArith
  • WarningSim
Examples
distroptions("RtoDPQ.e") # returns the value of RtoDPQ.e, by default = 5
currentDistrOptions <- distroptions()
distroptions(RtoDPQ.e = 6)
distroptions("RtoDPQ.e") 
getdistrOption("RtoDPQ.e") 
distroptions(c("WarningSim","WarningArith"))   
getdistrOption("WarningSim")   
distroptions("WarningSim" = FALSE)   
         # switches off warnings as to (In)accuracy due to simulations
distroptions("WarningArith" = FALSE) 
         # switches off warnings as to arithmetics
distroptions(currentDistrOptions)
Documentation reproduced from package distr, version 1.8, License: GPL (version 2 or later)

Community examples

Looks like there are no examples yet.