Description Usage Arguments Value Examples
View source: R/predicates.R
Test whether x is of length 1
1
is_scalar(x)
x
Object to be tested.
Logical
1 2 3
is_scalar(1) # TRUE is_scalar("a") # TRUE is_scalar(c(1, 2)) # FALSE
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.