Simple utlity function to check if a number is in the set {-1, +1} or if every element of a vector is in this set
1 | is.minusplus(x)
|
x |
a number or vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.