Format is: rows of non-empty lines of . and O with ! headers

read_cells(txt)

Arguments

txt

incoming text as a single string

Value

matrix

See also

Examples

glider <- " .O ..O OOO " read_cells(glider)
#> [,1] [,2] [,3] #> [1,] FALSE TRUE FALSE #> [2,] FALSE FALSE TRUE #> [3,] TRUE TRUE TRUE