setMappingListValue {safetyGraphics} | R 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 |
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")))
[Package safetyGraphics version 2.1.1 Index]