ind_xml: Generate PMML elements that using 'NormDiscrete'

Description Usage Arguments Value Examples

Description

Generate the 'NormContinuous' part for the whole PMML transformation segment 'LocalTransformation'.

Usage

1
2
ind_xml(featureName, featureLevel = c(0, 1), newFieldName = featureName,
  purpose = "miss")

Arguments

featureName

Character string indicating name of the discrete/categorical variable that indicators will be generated from.

featureLevel

Vector of float numbers indicating different levels/chategories or the discrete variable.

newFieldName

Character string indicating new name for the derived feature.

purpose

Character string indicating type of 'NormContinuous', e.g., 'miss', 'dummy'.

Value

XML file representing PMML element 'LocalTransformation' that contains 'DerivedField' with transformation 'NormDiscrete'.

Examples

1
2
dummyMMID <- ind_xml(featureName = 'MMID', featureLevel = c(1:25),
    newFieldName = 'MMID', purpose = 'dummy')

hongqi0314/PRAuto.PMML documentation built on May 6, 2019, 11:30 a.m.