Learn R Programming

RclusTool (version 0.91.61)

readTrainSet: Training set reading

Description

Read a training set built from prototypes, to train a classifier for supervised classification.

Usage

readTrainSet(
  traindir,
  keep_ = FALSE,
  operations = NULL,
  RclusTool.env = initParameters()
)

Value

prototypes data.frame containing the features of each prototype associated to a class.

Arguments

traindir

character vector specifying the path of the training set.

keep_

boolean: if FALSE (default), the '_' directory is not considered in the training set.

operations

list of data.frames describing all preprocessing operations.

RclusTool.env

environment in which all global parameters, raw data and results are stored.

Details

readTrainSet reads a training set built from prototypes, to train a classifier for supervised classification

See Also

dropTrainSetVars

Examples

Run this code

rep <- system.file("extdata", package="RclusTool")
traindir <- file.path(rep, "train_example")
train <- readTrainSet(traindir)

Run the code above in your browser using DataLab