QuinlanAttributes | R Documentation |
This class converts different types of data to a format
required for Cubist
and C5,0
.
QuinlanAttributes(object, ...)
## S3 method for class 'numeric'
QuinlanAttributes(object, ...)
## S3 method for class 'factor'
QuinlanAttributes(object, ...)
## S3 method for class 'character'
QuinlanAttributes(object, ...)
## S3 method for class 'ordered'
QuinlanAttributes(object, ...)
## S3 method for class 'Date'
QuinlanAttributes(object, ...)
## S3 method for class 'POSIXct'
QuinlanAttributes(object, ...)
## S3 method for class 'matrix'
QuinlanAttributes(object, ...)
## S3 method for class 'data.frame'
QuinlanAttributes(object, ...)
makeDataFile(x, y, w = NULL)
makeNamesFile(x, y, w = NULL, label = "outcome", comments = TRUE)
object |
An object to translate to the format expected by the Quinlan C code. |
x |
A data frame or matrix or predictors |
y |
A vector of outcomes |
w |
A numeric vector of case weights or |
label |
A string required by the C code as the file name |
comments |
A logical; should info about the call be printed in the string? |
A textual representation of the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.