Description Usage Arguments Methods (by class) Examples
.setRNG
is an S4 generic that sets the current RNG settings, from a
variety of specifications.
Its methods define the workhorse functions that are called by setRNG
.
1 2 3 4 5 6 7 |
object |
an R object from which RNG settings can be extracted, e.g. an
integer vector containing a suitable value for |
... |
extra arguments to allow extension and passed to a suitable S4 method
|
"character": Sets the RNG to kind object
, assuming is a valid RNG kind:
it is equivalent to RNGkind(object, ...
.
All arguments in ...
are passed to RNGkind
.
"numeric": Sets the RNG settings using object
directly the new value for
.Random.seed
or to initialise it with set.seed
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.