board_df: board_df

Description Usage Arguments Value Author(s)

View source: R/board_df.R

Description

Returns the board as a data frame containing co-ordinates of the living cells.

Usage

1
board_df(board, board_size, generation)

Arguments

board

An n^2 binary matrix with living cells indicated by 1s.

board_size

An integer specifying the size of the 2D array.

generation

A positive integer specifying the number of the focal generation.

Value

A data frame containing row and column columns, as well as the generation number.

Author(s)

Alex Kalinka, alex.t.kalinka@gmail.com


alextkalinka/gameRlife documentation built on Jan. 4, 2022, 12:02 a.m.