isZERO | R Documentation |
Test for the values 0
, 1
or -1
.
Used in newSimplification
definitions.
isZERO(x)
isONE(x)
isMINUSONE(x)
x |
object to be tested |
Returns TRUE
if the argument is the appropriate scalar value.
isZERO(0)
x <- quote(0*1)
isZERO(x) # This is `*`(0, 1), not a value
isZERO(eval(x))
x <- quote(-1)
isMINUSONE(x) # This is `-`(1), not a value
isMINUSONE(eval(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.