pmml (version 1.5.1)

makeIntervals: Create Interval elements, most likely to add to a DataDictionary element

Description

Create Interval elements, most likely to add to a DataDictionary element

Usage

makeIntervals(closure = NULL, leftMargin = NULL, rightMargin = NULL, namespace = "4_2")

Arguments

closure
The 'closure' attribute of each 'Interval' element to be created in order.
leftMargin
The 'leftMargin' attribute of each 'Interval' element to be created in order.
rightMargin
The 'rightMargin' attribute of each 'Interval' element to be created in order.
namespace
The namespace of the PMML model

Value

PMML Intervals elements.

Details

The 'Interval' element allows 3 attributes, all of which may be defined in the 'makeIntervals' function. The value of these attributes should be provided as a list. Thus the elements of the 'leftMargin' for example define the value of that attribute for each 'Interval' element in order.

See Also

makeValues to make Values child elements, addDFChildren to add these xml fragments to the DataDictionary PMML element.

Examples

Run this code
# make 3 Interval elements
# we define the 3 Intervals as ,1]  (1,2)  and [2, 
mi<-makeIntervals(list("openClosed","openOpen","closedOpen"),
                   list(NULL,1,2),list(1,2,NULL))

Run the code above in your browser using DataLab