replicate2: parallel replicate with progress

replicate2R Documentation

parallel replicate with progress

Description

‘replicate’ is a wrapper for the common use of ‘mclapply2’ for repeated evaluation of an expression (which will usually involve random number generation).

Usage

replicate2(n, expr)

Arguments

n

integer: the number of replications.

expr

the expression (a language object, usually a call) to evaluate repeatedly.

Value

An atomic vector or matrix or list of the same length as n.

Author(s)

float


floatofmath/bt88.03.704 documentation built on March 25, 2022, 12:28 p.m.