as_dict: Coerces an object to a dictionary

Description Usage Arguments Value

View source: R/dict.r

Description

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

Usage

1
2
3
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.


stefano-meschiari/dict documentation built on May 30, 2019, 10:44 a.m.