Skip to contents

Is every symbol used once in each row and each column?

Usage

morie_is_latin_square(square)

Arguments

square

A square matrix of symbols.

Value

A list with valid, rows_ok, columns_ok.

Examples

morie_is_latin_square(square = 5L)
#> $valid
#> [1] TRUE
#> 
#> $rows_ok
#> [1] TRUE
#> 
#> $columns_ok
#> [1] TRUE
#> 
#> $symbol_count_ok
#> [1] TRUE
#> 
#> $order
#> [1] 1
#>