Description Usage Arguments Value Note Author(s) See Also Examples
The user can set (and get) "Session" options which influence the
behavior regr0 functions, notably stamp()
.
1 2 3 4 | userOptions (x=NULL, default=NULL, list=NULL, ...)
getUserOption(x, default = NULL)
UserOptions
UserDefault
|
x |
option to query or set |
default |
default value |
list |
a list of options to be set |
... |
any UserOptions can be defined or modified, using 'name = value'. |
For 'getUserOption', the current value set for UserOption 'x', or 'NULL' if the option is not set.
For 'userOptions()', a list of all set UserOptions sorted by name. For 'userOptions(name)', a list of length one containing the set value, or 'NULL' if it is not set. For uses setting one or more options, a list with the previous values of the UserOptions that are changed (returned invisibly).
In contrast to the options
of R base,
the UserOptions
are stored on the .GlobalEnv
(if anyone is changed)
and will be recovered if the latter is stored and loaded again.
Werner A. Stahel
stamp
; R's own predefined options()
.
1 2 3 4 5 6 7 8 9 10 | ## see example(stamp)
## set options
userOptions(project="Example A", step="regression analysis")
userOptions(show.termeffects=FALSE) ## suppress dummy coefficients
## for factors when using print.regr
userOptions("regr.contrasts") ## c("contr.wsum","contr.wpoly")
userOptions(stamp=NULL)
getUserOption("stamp", default=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.