hasName: Backport of hasName for R < 3.4.0

View source: R/hasName.R

hasNameR Documentation

Backport of hasName for R < 3.4.0

Description

See the original description in utils::hasName.

Usage

hasName(x, name)

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_hasName = getFromNamespace("hasName", "backports")

bp_hasName(list(a = 1, b = 2), c("a", "b", "c"))

mllg/backports documentation built on Aug. 12, 2024, 12:31 p.m.