addOperation: Add operation

Description Usage Arguments Value Examples

View source: R/sampleBuilding.R

Description

addOperation create configuration object for the datasample

Usage

1
addOperation(parameterList, featureOperations)

Arguments

parameterList,

list of Preprocessing instructions for an operation.

featureOperations,

matrix where to list Operations on features.

Value

The configuration object created by the list of preprocessing instructions parameterList in featureOperations.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
featOp <- matrix(ncol=4,nrow=0)
#Adding two differents variables
featOp <- addOperation(list("+","x","y"), featOp)
#Select a variable
featOp <- addOperation(list("select","x"), featOp)
#Change a profile color
featOp <- addOperation(list("signalColor","x","grey"), featOp)
#Make a PCA projection (with the number of dimensions)
featOp <- addOperation(list("projection","pca","0"), featOp)
#Make a spectral projection
featOp <- addOperation(list("projection","spectral"), featOp)
#Scale the data
featOp <- addOperation(list("scaling","on"), featOp)
#Sample the data (with a sampling size)
featOp <- addOperation(list("sampling","150"), featOp)
#Make a log transformation of a variable
featOp <- addOperation(list("log","x"), featOp)

RclusTool documentation built on Feb. 4, 2020, 5:08 p.m.