Learn R Programming

ddgraph (version 1.16.0)

makeDDDataSet: Construct an DDDataSet object...

Description

Construct an DDDataSet object

Usage

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

Examples

Run this code
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)

Run the code above in your browser using DataLab