is_length_all_one {baker} | R Documentation |
check if a list has elements all of length one
Description
check if a list has elements all of length one
Usage
is_length_all_one(x)
Arguments
x |
a list |
Value
TRUE or FALSE
Examples
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
[Package baker version 1.0.3 Index]