smart.mode.is | R Documentation |
Determine which of three modes the smart prediction is currently in.
smart.mode.is(mode.arg = NULL)
mode.arg |
a character string, either |
Smart functions such as
bs
and
poly
need to know what mode
smart prediction is in. If it is in "write"
mode
then the parameters are saved to .smart.prediction
using put.smart
. If in "read"
mode
then the parameters are read in using get.smart
.
If in "neutral"
mode then the smart function behaves like an
ordinary function.
If mode.arg
is given, then either TRUE
or FALSE
is returned.
If mode.arg
is not given, then the mode ("neutral"
,
"read"
or "write"
)
is returned. Usually, the mode is "neutral"
.
put.smart
,
bs
,
poly
.
print(sm.min1)
smart.mode.is() # Returns "neutral"
smart.mode.is(smart.mode.is()) # Returns TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.