is_length_all_one: check if a list has elements all of length one

Description Usage Arguments Value Examples

View source: R/plot-panels.R

Description

check if a list has elements all of length one

Usage

1

Arguments

x

a list

Value

TRUE or FALSE

Examples

1
2
3
4
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

baker documentation built on Feb. 2, 2022, 9:06 a.m.