is_scalar | R Documentation |
Test whether x is of length 1
is_scalar(x)
x |
Object to be tested. |
Logical
is_scalar(1) # TRUE
is_scalar("a") # TRUE
is_scalar(c(1, 2)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.