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]


BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to setValue in BBmisc...