Skip to contents

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
#> [1]  TRUE FALSE
is.unnamed(list(a = 1, 2)) # FALSE TRUE
#> [1] FALSE  TRUE
is.unnamed(list()) # logical(0)
#> logical(0)
is.unnamed(list(a = 1, 2, c = 3)) # FALSE  TRUE FALSE
#> [1] FALSE  TRUE FALSE