rgen: Closure helper for random generators

Description Usage Arguments Examples

View source: R/data_gen.R

Description

Closure helper for random generators

Usage

1
rgen(n, fnc, ...)

Arguments

n

number of samples

fnc

random generator to use

...

passed to generator function

Examples

1
2
# Calling .rnorm() is equivalent to calling rnorm(n, mean = 3, sd = 10)
.rnorm <- rgen(10, rnorm, mean = 3, sd = 10)

bradgwest/agileoracle documentation built on Dec. 10, 2019, 11:21 a.m.