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

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 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)

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?

Value

A textual representation of the data.


Cubist

Rule- And Instance-Based Regression Modeling

v0.2.40
GPL-3
Authors
Max Kuhn [aut, cre], Steve Weston [ctb], Chris Keefer [ctb], Nathan Coulter [ctb], Ross Quinlan [aut] (Author of imported C code), Rulequest Research Pty Ltd. [cph] (Copyright holder of imported C code)
Initial release

We don't support your browser anymore

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