rstream.clone-methods {rstream} | R Documentation |
Methods for Function rstream.clone in Package ‘rstream’
Description
Make a copy (clone) of an "rstream" object in package rstream.
"rstream" objects cannot simply be copied by <-
. The new
variable does not hold a copy of an "rstream" object but just points
to the old object which might not be the wanted result (similar to R
environments). To get a copy of the whole "rstream" object the clone
method must be used.
Usage
## S4 method for signature 'rstream'
rstream.clone(stream)
Arguments
stream |
an "rstream" object. |
Methods
Methods available for all "rstream" subclasses:
rstream.mrg32k3a
,
rstream.runif
.
Note
The label (name) of the new copy has a dot "." appended to distinguish the original object from its copy.
Author(s)
Josef Leydold josef.leydold@wu.ac.at
See Also
Examples
## create a new rstream object (of subclass rstream.mrg32k3a)
s <- new("rstream.mrg32k3a")
## make a copy (clone)
clone <- rstream.clone(s)
[Package rstream version 1.3.7 Index]