is_single | R Documentation |
Tests if an object is single (i.e. of length 1)
is_single(x)
x |
an R object |
is_single_number
,
is_single_string
,
is_single_logical
is_single("hoskdflksfd") # TRUE
is_single("1.0") # TRUE
is_single(1:5) # FALSE
is_single(matrix(runif(4), 2, 2)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.