Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

make_values

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


Description

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

Usage

make_values(
  value = NULL,
  displayValue = NULL,
  property = NULL,
  namespace = "4_4"
)

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

Details

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

Value

PMML Values elements.

Author(s)

Tridivesh Jena

See Also

make_intervals to make Interval child elements, add_data_field_children to add these xml fragments to the DataDictionary PMML element.

Examples

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

pmml

Generate PMML for Various Models

v2.4.0
GPL-3 | file LICENSE
Authors
Dmitriy Bolotov [aut, cre], Tridivesh Jena [aut], Graham Williams [aut], Wen-Ching Lin [aut], Michael Hahsler [aut], Hemant Ishwaran [aut], Udaya B. Kogalur [aut], Rajarshi Guha [aut], Software AG [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.