Learn R Programming

hdfqlr (version 0.6-2)

get_key: Get List Keys or Values

Description

Get the value of a list key, or the key of a list value.

Usage

get_key(x, l, invert = FALSE)

Arguments

x

A key or value.

l

A named list.

invert

If TRUE, return the key associated with the given value.

Value

A key or value.