Learn R Programming

Dict (version 0.6)

default: Gets and sets the default value of a dictionary.

Description

Functions to get and set the default value of a dictionary. The default value is returned when a non-existing key is accessed.

Usage

default(dict)
default(dict) <- value

Arguments

dict
an existing dictionary object
value
the new default value

Value

the modified dictionary