Learn R Programming

Cubist (version 0.4.4)

QuinlanAttributes: Convert Data to Text Format

Description

This class converts different types of data to a format required for Cubist and C5,0.

Usage

QuinlanAttributes(object, ...)

# S3 method for numeric QuinlanAttributes(object, ...)

# S3 method for factor QuinlanAttributes(object, ...)

# S3 method for character QuinlanAttributes(object, ...)

# S3 method for ordered QuinlanAttributes(object, ...)

# S3 method for Date QuinlanAttributes(object, ...)

# S3 method for POSIXct QuinlanAttributes(object, ...)

# S3 method for matrix QuinlanAttributes(object, ...)

# S3 method for data.frame QuinlanAttributes(object, ...)

makeDataFile(x, y, w = NULL)

makeNamesFile(x, y, w = NULL, label = "outcome", comments = TRUE)

Value

A textual representation of the data.

Arguments

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 NULL

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?