is.numeric.or.logical | R Documentation |
is.numeric.or.logical()
checks if the provided input is either numeric or logical.
## S3 method for class 'or.logical'
is.numeric(x)
x |
The input to check. |
Returns TRUE
if x
is either numeric or logical, otherwise FALSE
.
is.numeric.or.logical(123) # TRUE
is.numeric.or.logical(TRUE) # TRUE
is.numeric.or.logical("text") # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.