designGame {sudokuAlt} | R Documentation |
Sudoku Design
Description
Take a sudoku game and represent the information as a data frame giving the row, column, square and symbol for each entry. This is a useful form if the (complete) game is to be used as an experimental design
Usage
designGame(g, ...)
## Default S3 method:
designGame(g, ...)
## S3 method for class 'sudoku'
designGame(g, ...)
Arguments
g |
a sudoku game, presumably solved |
... |
currently ignored |
Value
a data frame with four colums, Row
, Col
,
Square
and Symbol
Examples
set.seed(2019)
d <- seedGame(4) %>% solve() %>%
regulariseGame(target = "b") %>%
designGame()
rbind(head(d), tail(d))
[Package sudokuAlt version 0.2-1 Index]