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

View source: R/plot-panels.R

is_length_all_oneR 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

zhenkewu/baker documentation built on May 6, 2024, 11:19 p.m.