View source: R/setMappingListValue.R
setMappingListValue | R Documentation |
Sets the value for a named parameter (key
) to given value
in a list (settings
)
setMappingListValue(key, value, settings, forceCreate = FALSE)
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. |
the updated settings object
testSet<-list(a=list(b="myValue")) safetyGraphics:::setMappingListValue(key=list("a","b"), value="notMyValue", settings=testSet) #returns list(a=list(b="notMyValue")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.