char_row_to_board_row: Translate A Character Vector to A Board Row

Description Usage Arguments Value

View source: R/utils.R

Description

Translate A Character Vector to A Board Row

Usage

1
char_row_to_board_row(board_row_as_char)

Arguments

board_row_as_char

A string vector of length n, which is the dimension of the board. Only strings that encode recognized board values are translated into numerics, otherwise NA is returned to denote that the string does not correspond to any meaningful board value.

Value

A vector of 0, 1, or NA's of the same length as the input vector.


lilinhonglexie/percolate documentation built on Nov. 4, 2019, 4:32 p.m.