extend: Merge two dictionaries or named lists.

Description Usage Arguments Details

View source: R/dict.r

Description

Merge two dictionaries or named lists.

Usage

1
2
3

Arguments

x

original object; a dictionary or named list

...

dictionaries or named lists that override x

defaults

dictionary or named list providing default values for x

Details

extend overrides the entries in the first dictionary with entries from the following objects, left to right (each object overrides entries from the previous argument).

defaults augments the entries in the first dictionary with entries from the second dictionary that were not present in the first.


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