rbinom_matrix: Sample from a Binomial, Preserving Dimension

Description Usage Arguments Value

Description

Works as 'rbinom', except that it preserves the dimensions, and dimnames of the input(s).

Usage

1
rbinom_matrix(size, prob)

Arguments

size

Integer vector, matrix, or array.

prob

Numeric vector, matrix, or array.

Value

An integer object of the same dimensions as the input (recycled to match each other), and the same dimnames if these can be matched.


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.