Learn R Programming

broman (version 0.84)

setRNGparallel: Set up random number generation for parallel calculations

Description

Set random number generation to L'Ecuyer-CMRG, for use in parallel calculations.

Usage

setRNGparallel()

unsetRNGparallel()

Arguments

Details

I can never remember the command RNGkind("L'Ecuyer-CMRG"); this is a shortcut. unsetRNG4parallel sets the random number generator back to the default type.

Examples

Run this code
RNGkind()
setRNGparallel()
RNGkind()
unsetRNGparallel()
RNGkind()

Run the code above in your browser using DataLab