is.unnamed: Are List Elements Unnamed?

View source: R/mergeArgs.R

is.unnamedR Documentation

Are List Elements Unnamed?

Description

returns a vector of logical as long as x holding TRUE at indices where the list element at the same indices are named and FALSE at positions where the list element at the same indices are not named.

Usage

is.unnamed(x)

Arguments

x

list

Value

vector of logical

Examples

is.unnamed(list(1, b = 2)) # TRUE FALSE
is.unnamed(list(a = 1, 2)) # FALSE TRUE
is.unnamed(list()) # logical(0)
is.unnamed(list(a = 1, 2, c = 3)) # FALSE  TRUE FALSE


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.