some {optional} | R Documentation |
Check if a optional object equals none
some(arg)
arg |
The variable to check existence |
TRUE if arg
is an optional variable
and if it is not none, else returns FALSE
option(), none a <- option(1) some(a) ## [1] TRUE b <- none some(b) ## [1] FALSE