transform_vec: transform_vec function; transforms a vector of strings...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

transform_vec function; transforms a vector of strings containing "*" and "." to a "board" object

Usage

1

Arguments

v

vector of strings of "*" and "."

d

integer, dimensions of matrix

Value

"board" object, superclass "matrix" containing only 0s and 1s

Examples

1
transform_vec(c("."), 1), transform_vec(c("*"), 1)

adityagandhi81298/percolate documentation built on Nov. 1, 2019, 8:54 p.m.