Learn R Programming

benchmark (version 0.3-3)

as.dataset: A dataset abstraction to simplify the calculation of dataset...

Description

A dataset abstraction to simplify the calculation of dataset characteristics.

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

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