Description Usage Arguments Details Author(s)
Function to transform all input to a matrix. In addition, it checks whether all elements of the input are either 0 or 1.
1 2 | checkMD(input)
|
input |
An |
checkMD()
accepts one input and - if codeinput is a matrix - returns it without column names, otherwise transforms it into a matrix and returns it without column names. In case any of the elements of input are different from 0 or 1, it stops the routine and throws an error.
Gabriele Rovigatti
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.