is_named_vector: is_named_vector

View source: R/utils.R

is_named_vectorR Documentation

is_named_vector

Description

Check if is named vector

Usage

is_named_vector(x, mode = "any")

Arguments

x

Choose vector to test.

mode

character string naming an atomic mode or "list" or "expression" or (except for vector) "any". Allows any type (see typeof) for mode, and when mode is not "any" almost the same as typeof(x) == mode.

Examples

is_named_vector(c(letter = "a", number = 4))

JouniVatanen/jmisc documentation built on Jan. 25, 2023, 8:41 p.m.