get_bin_matrix: Generate a binary random matrix of ones and zeros with a...

get_bin_matrixR Documentation

Generate a binary random matrix of ones and zeros with a threshold parameter

Description

Generate a binary random matrix of ones and zeros with a threshold parameter

Usage

get_bin_matrix(m, n, success)

Arguments

m

The number of columns

n

The number of rows

success

The probability of success in each trial. Default is 0.5

Value

Matrix with ones and zeros

Examples

get_bin_matrix(m = 3  , n =  4, success = 0.3)

alrobles/geotax documentation built on July 27, 2023, 4:37 a.m.