preProcess: Data Preprocessing for Efficiency Analysis Trees

Description Usage Arguments Value

View source: R/PreProcessing.R

Description

This function arranges the data in the required format and displays error messages.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
preProcess(
  data,
  x,
  y,
  numStop = 5,
  fold = 5,
  max.depth = NULL,
  max.leaves = NULL,
  na.rm = TRUE
)

Arguments

data

data.frame or matrix containing the variables in the model.

x

Column input indexes in data.

y

Column output indexes in data.

numStop

Minimum number of observations in a node for a split to be attempted.

fold

Set of number of folds in which the dataset to apply cross-validation during the pruning is divided.

max.depth

Depth of the tree.

max.leaves

Maximum number of leaf nodes.

na.rm

logical. If TRUE, NA rows are omitted.

Value

It returns a data.frame in the required format.


MiriamEsteve/EAT documentation built on Jan. 18, 2022, 6:55 p.m.