Learn R Programming

pmml (version 1.2.21)

pmml: Generate PMML for an R object

Description

'pmml' is a generic function implementing S3 methods used to produce the PMML (Predictive Model Markup Language) representation of an R model. The PMML can then be imported into other systems that accept PMML.

Usage

pmml(model, model.name="Rattle_Model", app.name="Rattle/PMML",
     description=NULL, copyright=NULL, transforms=NULL, dataset=NULL, ...)

Arguments

model
an object to be converted to PMML.
model.name
a name to give to the model in the PMML.
app.name
the name of the application that generated the PMML.
description
a descriptive text for the header of the PMML.
copyright
the copyright notice for the model.
transforms
a coded list of transforms performed.
dataset
the orginal training dataset, if available.
...
further arguments passed to or from other methods.

Details

The generated PMML can be imported into any PMML consuming application, such as Teradata Warehouse Miner and DB2. Generally, these applications convert the PMML into SQL for execution across a database.

References

Package home page: http://rattle.togaware.com

PMML home page: http://www.dmg.org

See Also

pmml.rules, pmml.hclust, pmml.kmeans, pmml.ksvm, pmml.lm, pmml.nnet, pmml.rpart, pmml.rsf, pmmltoc.

Examples

Run this code
# Build a simple lm model
(iris.lm <- lm(Sepal.Length ~ ., data=iris))

# Convert to pmml
pmml(iris.lm)

Run the code above in your browser using DataLab