Skip to contents

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