safe_get: Safely get element of a named vector

View source: R/utils.R

safe_getR Documentation

Safely get element of a named vector

Description

If the element does not exist, return NULL.

Usage

safe_get(x, name)

Arguments

x

a named vector

name

the name of the element to retrieve.


cauphy documentation built on Oct. 1, 2024, 5:08 p.m.