intrval-options | R Documentation |
Options store and allow to set global values for the intrval functions.
intrval_options(...)
... |
Options to set. |
When parameters are set by intrval_options
, their former values are
returned in an invisible named list. Such a list can be passed as an
argument to intrval_options
to restore the parameter values.
Tags are the following:
use_fpCompare
: use the fpCompare package for the reliable comparison of floating point numbers.
str(intrval_options())
x1 <- 0.5 - 0.3
x2 <- 0.3 - 0.1
# save old values and set the new one
op <- intrval_options(use_fpCompare = FALSE)
# this is the base R behavior
x1
x2
# reset defaults
intrval_options(op)
# using fpCompare
x1
x2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.