binary | R Documentation |
This function checks whether a numeric array is binary, with only one unique nonzero value, or not.
binary(x)
x |
An object that can be coerced to a numeric array. |
A logical value indicating whether the array is binary or not. Binary in this case means that the array contains only one unique nonzero value, which is stored with the return value in an attribute.
Jon Clayden <code@clayden.org>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.