Learn R Programming

safetyGraphics (version 1.1.0)

checkNumeric: Check that settings for mapping numeric data are associated with numeric columns

Description

Check that settings for mapping numeric data are associated with numeric columns

Usage

checkNumeric(key, settings, data)

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()

data

A data frame to check for the specified numeric column

Value

A list containing the results of the check following the format specified in validateSettings()[["checkList"]]

Examples

Run this code
# NOT RUN {
testSettings<-generateSettings(standard="AdAM")
#pass ($valid == FALSE)
safetyGraphics:::checkNumeric(key=list("id_col"),settings=testSettings, data=adlbc)

#pass ($valid == TRUE)
safetyGraphics:::checkNumeric(key=list("value_col"),settings=testSettings, data=adlbc)

# }

Run the code above in your browser using DataLab