has_all_names: Check if a named object has all specified names

View source: R/assert_names.R

has_all_namesR Documentation

Check if a named object has all specified names

Description

This function returns a logical value indicating whether the object x has all the names specified in names.

Usage

has_all_names(x, names)

Arguments

x

a named object

names

A character vector of names to check for in x.

Value

A logical value indicating whether x has all the names specified in names


assertions documentation built on June 7, 2023, 6:03 p.m.