setValue: Set a list element to a new value.

View source: R/setValue.R

setValueR Documentation

Set a list element to a new value.

Description

This wrapper supports setting elements to NULL.

Usage

setValue(obj, index, newval)

Arguments

obj

[list]

index

[character | integer]
Index or indices where to insert the new values.

newval

[any]
Inserted elements(s). Has to be a list if index is a vector.

Value

[list]


berndbischl/BBmisc documentation built on Jan. 6, 2023, 12:32 p.m.