Learn R Programming

publipha (version 0.1.2)

add_elements: Adds named elements to a list when they are not there already.

Description

Adds named elements to a list when they are not there already.

Usage

add_elements(input, ..., .eager = TRUE)

Value

A modified list.

Arguments

input

List. The input list to manipulate.

...

Key value pairs to add to the list provided the key is not already used.

.eager

Logical; Should the values be evaluated?