View source: R/CheckBinaryMatrix.R

CheckBinaryMatrix | R Documentation |

Checks if a data matrix is binary

```
CheckBinaryMatrix(x)
```

`x` |
Matrix to check. |

Checks if all the entries of the matix are either 0 or 1.

`TRUE`

if the matrix is binary.

Jose Luis Vicente-Villardon

```
data(spiders)
sp=Dataframe2BinaryMatrix(spiders)
CheckBinaryMatrix(sp)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.