Skip to contents

Adds a new element to a nested list, either as an unnamed entry appended to the end or as a named entry assigned under a specified key.

Usage

list.append(list, where, value, name = NULL)

Arguments

list

A list object with a sublist at where.

where

A character string indicating the name of the sublist to modify.

value

The value to be appended or assigned.

name

Optional. If provided, the value is assigned under this name. Otherwise, it is appended as unnamed.

Value

The modified list object.