setMappingListValue: Set the value for a given named parameter

View source: R/setMappingListValue.R

setMappingListValueR Documentation

Set the value for a given named parameter

Description

Sets the value for a named parameter (key) to given value in a list (settings)

Usage

setMappingListValue(key, value, settings, forceCreate = FALSE)

Arguments

key

a list defining the position of parameter in the settings object.

value

the value to set

settings

The settings list used to generate a chart like eDISH()

forceCreate

Specifies whether the function should create a new list() when none exisits. This most commonly occurs when deeply nested objects.

Value

the updated settings object

Examples

testSet<-list(a=list(b="myValue"))
safetyGraphics:::setMappingListValue(key=list("a","b"), value="notMyValue", settings=testSet) 
#returns list(a=list(b="notMyValue")))


safetyGraphics documentation built on Dec. 28, 2022, 1:58 a.m.