Learn R Programming

Dict (version 0.6)

extend: Merge two dictionaries or named lists.

Description

Merge two dictionaries or named lists.

Usage

extend(x, ...)
defaults(x, defaults)

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.