# marginals

From aylmer v1.0-5
by Robin K S Hankin

##### Marginals of a board

Various utilities to calculate the marginal totals of a board.

- Keywords
- array

##### Usage

```
marginals(x)
dof(x)
is.board(x)
as.board(x)
.Cargs(x)
```

##### Arguments

- x
- A matrix, usually including one or more
`NA`

entries, coerced to integer (aboard ); see details section

##### Details

Function `marginals()`

takes a matrix and returns a list holding
the marginal totals and the coordinates of blank squares.

Function `dof()`

takes a board and returns the number of degrees
of freedom present.

Function `.Cargs()`

takes a matrix and coerces it to a list
suitable for calling the `C++`

routines; it is not really
intended for the end-user. This function uses formal S4 methods to
coerce a matrix to an object of class `board`

(checking for
non-integer entries, etc), as do the functions documented in
`allboards.Rd`

.

##### See Also

##### Examples

```
data(icons)
marginals(icons)
```

*Documentation reproduced from package aylmer, version 1.0-5, License: GPL-2*

### Community examples

Looks like there are no examples yet.