Learn R Programming

safetyGraphics (version 2.0.0)

setMappingListValue: 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

Run this code
# NOT RUN {
testSet<-list(a=list(b="myValue"))
safetyGraphics:::setMappingListValue(key=list("a","b"), value="notMyValue", settings=testSet) 
#returns list(a=list(b="notMyValue")))

# }

Run the code above in your browser using DataLab