pmml (version 1.5.1)

makeValues: Create Values element, most likely to add to a DataDictionary element

Description

Create Values element, most likely to add to a DataDictionary element

Usage

makeValues(value = NULL, displayValue = NULL, property = NULL, namespace = "4_2")

Arguments

value
The 'value' attribute of each 'Value' element to be created in order.
displayValue
The 'displayValue' attribute of each 'Value' element to be created in order.
property
The 'property' attribute of each 'Value' element to be created in order.
namespace
The namespace of the PMML model

Value

PMML Values elements.

Details

The 'makeValues' function is used the same way as the 'makeIntervals' function. If certain attributes for an element should not be included, they should be input in the list as NULL.

See Also

makeIntervals to make Interval child elements, addDFChildren to add these xml fragments to the DataDictionary PMML element.

Examples

Run this code
# define 3 values, none with a 'displayValue' attribute and 1 value 
# defined as 'invalid'. The 2nd one is 'valid' by default.
mv <- makeValues(list(1.1,2.2,3.3),list(NULL,NULL,NULL),
                 list("valid",NULL,"invalid"))

Run the code above in your browser using DataCamp Workspace