samVec: Produce a samVec object

Description Usage Arguments Value Examples

View source: R/AA_samVecClass.R

Description

samVec defines the samVec object given necessary data and information. The objects of samVec class are the base for further analysis. See plot.samVec for plotting instructions.

Usage

1
samVec(datMat, selCol = NULL, labels = NULL, dataType = "MAQC")

Arguments

datMat

A matrix.

selCol

A list of vector of integers containing absolute indexes of choosen columns.

labels

A vector of characters or short strings marking the groups. The length of labels should be the same with the length of selCol. If not specifying, a vector of integer is given.

dataType

A string contains data type or other useful imformation.

Value

samVec returns a samVec object. A samVec is a list contains:

data

A matrix containing the data imported by datMat.

nCol

An integer indicating the number of columns of data.

nGroup

An interger indicating the number of groups specified by selCol.

colInd

A list of vector of integers containing relative indexes of columns.

selCol

A list of vector of integers containing absolute indexes of choosen columns.

nRow

A integers indicating the number of rows of data.

labels

A vector of characters, integers or short string marking the groups.

dataType

A long string containing useful information of the data.

Examples

1
2
3
datamatrix = matrix(rnorm(100000), 1000, 100)
testset = samVec(datamatrix, selCol = list(1:5, 11:15, 21:25), dataType = "Example")
plot(testset, main = testset$dataType)

ziyanyin/DEEE documentation built on May 28, 2017, 1:51 p.m.