Learn R Programming

safetyGraphics (version 1.1.0)

getSettingValue: Retrieve the value for a given named parameter

Description

Returns the value for a named parameter (key) in a list settings

Usage

getSettingValue(key, settings)

Arguments

key

a list (like those provided by getSettingKeys()) defining the position of parameter in the settings object.

settings

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

Value

the value of the key/settings combo

Examples

Run this code
# NOT RUN {
safetyGraphics:::getSettingValue(list("a","b"),list(a=list(b="myValue"))) #returns "myValue"

testSettings<-generateSettings(standard="AdAM")
safetyGraphics:::getSettingValue(list("id_col"),testSettings) 
safetyGraphics:::getSettingValue(list("measure_values","ALP"),testSettings)
safetyGraphics:::getSettingValue(list("NotASetting"),testSettings) #returns NULL

# }

Run the code above in your browser using DataLab