makeDDDataSet: Construct an DDDataSet object...

Description Usage Arguments Value Examples

View source: R/methods-DDDataSet.R

Description

Construct an DDDataSet object

Usage

1
makeDDDataSet(signal, name, classLabels, classLabelsCol, removeZeroVar=FALSE)

Arguments

signal

the matrix or data frame where rows are observations and columns variables

name

the name of the dataset (to be used in plotting, etc)

classLabels

the vector of class labels or target responses (aka target variable)

classLabelsCol

the column which should be interpreted as class labels (either name or index)

removeZeroVar

if to remove zero variance columns without producing an error (default: TRUE)

Value

a new DDDataSet object

Examples

1
2
3
4
5
# columns are features, rows observations
data <- matrix(rbinom(50, 1, 0.5), ncol=5)
# target class labels
labels <- c(0, 0, 0, 0, 0, 1, 1, 1, 1, 1)
makeDDDataSet(data, name="example data", classLabels=labels)

ddgraph documentation built on Nov. 17, 2017, 10:50 a.m.