generate_board_mat: generate_board_mat

Description Usage Arguments Value Examples

View source: R/utils.R

Description

generate_board_mat

Usage

1
generate_board_mat(n = 5, p = 0.25)

Arguments

n

a positive integer denote the size of the board

p

a number between 0 and 1 that denotes the fraction of the 'n^2' squares are blocked

Value

a matrix

Examples

1
generate_board_mat(n = 10, p = 0.5)

rebeccapei16/percolate documentation built on Nov. 5, 2019, 3:05 a.m.