extract_by_name {tern}R Documentation

Extract elements by name

Description

This utility function extracts elements from a vector x by names. Differences to the standard [ function are:

Usage

extract_by_name(x, names)

Arguments

x

(named vector)
where to extract named elements from.

names

(character)
vector of names to extract.

Details

Value

NULL if x is NULL, otherwise the extracted elements from x.


[Package tern version 0.9.5 Index]