Learn R Programming

safetyGraphics (version 0.7.3)

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

checkNumericColumns(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 == TRUE)
safetyGraphics:::checkSettingProvided(key=list("id_col"),settings=testSettings) 

#fails since filters aren't specified by default
safetyGraphics:::checkSettingProvided(key=list("filters"),settings=testSettings) 

#fails since groups aren't specified by default
safetyGraphics:::checkSettingProvided(key=list("groups",1,"value_col"),settings=testSettings) 

# }

Run the code above in your browser using DataLab