is_length_all_one | R Documentation |
check if a list has elements all of length one
is_length_all_one(x)
x |
a list |
TRUE or FALSE
l = list(a = 5, b = 1:2)
is_length_all_one(l) # FALSE
l = list(a = 5, b = 1)
is_length_all_one(l) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.