Description Usage Arguments Value
This function creates a vector with one or more seeds, which often
will be needed in order to ensure that simulations done in parallel
are reproducible. In addition some attributes will be added to
document the random number generator used to obtain the values.
See the help-page of Random
for details about the three
arguments kind
, normal.kind
and vstr
.
1 2 | seed_sample(n = 1, .seed = NULL, kind = NULL, normal.kind = NULL,
vstr = NULL)
|
n |
An integer that specifies how many seeds that should
be generated. The default value is |
.seed |
An initial seed to be used to ensure reproducibility
of the result from this function, and this value will be an
attribute of the resulting vector. The default value for this
argument is |
kind |
Character or |
normal.kind |
Character string or |
vstr |
A character string containing a version number of
R. The default value |
A vector of seeds between the highest and lowest available
integer, i.e. between -2147483647
and 2147483647
(the value used is the result of 2^31-1.) Attributes
will be added in order to recreate the vector. NB: If n
is given as 1
, and .seed
has been specified, then
the returned value will be that value with the collection of
attributes added to it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.