Preserved seed and possibly set the seed
Usage
rxWithSeed(
seed,
code,
rxseed = rxGetSeed(),
kind = "default",
normal.kind = "default",
sample.kind = "default"
)
rxWithPreserveSeed(code)Arguments
- seed
R seed to use for the session
- code
Is the code to evaluate
- rxseed
is the rxode2 seed that is being preserved
- kind
character or
NULL. Ifkindis a character string, set R's RNG to the kind desired. Use"default"to return to the R default. See ‘Details’ for the interpretation ofNULL.- normal.kind
character string or
NULL. If it is a character string, set the method of Normal generation. Use"default"to return to the R default.NULLmakes no change.- sample.kind
character string or
NULL. If it is a character string, set the method of discrete uniform generation (used insample, for instance). Use"default"to return to the R default.NULLmakes no change.
