R/QuinlanAttributes.R

Defines functions QuinlanAttributes.data.frame QuinlanAttributes.matrix QuinlanAttributes.ordered QuinlanAttributes.character QuinlanAttributes.factor QuinlanAttributes.numeric

QuinlanAttributes <- function (x, ...) UseMethod("QuinlanAttributes")
QuinlanAttributes.numeric <- function(x, ...) "continuous."
QuinlanAttributes.factor <- function(x, ...) QuinlanAttributes(levels(x))
QuinlanAttributes.character <- function(x, ...) paste(paste(unique(formatCharacters(x)), collapse = ","), ".", sep = "")
QuinlanAttributes.ordered <- function(x, ...) paste("[ordered]", paste(formatCharacters(levels(x)), collapse = ","), ".", sep = "")
QuinlanAttributes.matrix <- function(x, ...) apply(x, 2, QuinlanAttributes)
QuinlanAttributes.data.frame <- function(x, ...) unlist(lapply(x,  QuinlanAttributes))

Try the C50 package in your browser

Any scripts or data that you put into this service are public.

C50 documentation built on May 2, 2019, 4:47 p.m.