toLookupList: Keys and Values to Lookup List

View source: R/lookup.R

toLookupListR Documentation

Keys and Values to Lookup List

Description

Keys and values to lookup list (list with elements representing the values and the names of the list elements representing the corresponding keys)

Usage

toLookupList(keys, values, data = NULL)

Arguments

keys

vector of character representing the keys of the dictionary

values

vector of character representing the values of the dictionary

data

Optional. Data frame with two columns of which the first is assumed to contain the keys and the second is assumed to contain the values of the dictionary

Value

dictionary: list with values as elements and keys as names


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.