Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getRNG1

Extracting RNG Settings from Computation Result Objects


Description

getRNG1 is an S4 generic that returns the initial RNG settings used for computing an object. For example, in the case of results from multiple model fits, it would return the RNG settings used to compute the first fit.

Usage

getRNG1(object, ...)

## S4 method for signature 'ANY'
getRNG1(object, ...)

Arguments

object

an R object.

...

extra arguments to allow extension.

Details

getRNG1 is defined to provide separate access to the RNG settings as they were at the very beginning of a whole computation, which might differ from the RNG settings returned by getRNG, that allows to reproduce the result only.

Think of a sequence of separate computations, from which only one result is used for the result (e.g. the one that maximizes a likelihood): getRNG1 would return the RNG settings to reproduce the complete sequence of computations, while getRNG would return the RNG settings necessary to reproduce only the computation whose result has maximum likelihood.

Methods (by class)

  • ANY: Default method that is identical to getRNG(object, ...).


rngtools

Utility Functions for Working with Random Number Generators

v1.5
GPL-3
Authors
Renaud Gaujoux [aut, cre], Max Kuhn [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.