Learn R Programming

benchmark (version 0.3-6)

as.dataset: Dataset abstraction

Description

Dataset abstraction to simplify characterization.

Usage

as.dataset(formula, data, ordered.as.factor = TRUE, integer.as.numeric = TRUE)

Arguments

formula
A symbolic description of the dataset
data
The data frame
ordered.as.factor
Interpret ordered factors as factors
integer.as.numeric
Interpret integer variables as numerics

Value

A proto object with an additional S3 class dataset

See Also

Other dataset.characterization: StatlogCharacteristics; characterize; plot.DatasetCharacterization

Examples

Run this code
data("iris")
  ds <- as.dataset(Species ~ ., iris)
  ds

  str(ds$response())
  str(ds$dataparts(c("input", "numeric")))

Run the code above in your browser using DataLab