Learn R Programming

Dict (version 0.6)

as_dict: Coerces an object to a dictionary

Description

Coerces a named list, a vector, or a list of entries to a dictionary. collect and as_dict are synonymous.

Usage

as_dict(obj)
collect(obj)

Arguments

obj
a named list or vector.

Value

a dictionary containing the same keys and values as the input object.