rxWithSeed | R Documentation |
Preserved seed and possibly set the seed
rxWithSeed(
seed,
code,
rxseed = rxGetSeed(),
kind = "default",
normal.kind = "default",
sample.kind = "default"
)
rxWithPreserveSeed(code)
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 |
normal.kind |
character string or |
sample.kind |
character string or |
returns whatever the code is returning
rxGetSeed, rxSetSeed
rxGetSeed()
rxWithSeed(1, {
print(rxGetSeed())
rxnorm()
print(rxGetSeed())
rxnorm()
}, rxseed=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.