initialize(mat):
Create the object from a matrix.
nSlices():
Returns the number of slices.
nCols():
Returns the number of columns in the matrix.
nRows():
Returns the number of rows in the matrix.
Clear():
Clears the object.
Removes the data slices and row and column names.
Clone():
Makes a copy of the object.
Changes to the copy do not affect the source object.
CreateFromMatrix(mat):
Creates SlicedData object from a matrix.
LoadFile(filename, skipRows = NULL, skipColumns = NULL,
sliceSize = NULL, omitCharacters = NULL,
delimiter = NULL, rowNamesColumn = 1):
Loads data matrix from a file.
filename should be a character string.
The remaining parameters specify the file format and have the same
meaning as file* fields.
Additional rowNamesColumn parameter specifies which of the
columns of row labels to use as row names.
SaveFile(filename):
Saves the data to a file.
filename should be a character string.
getSlice(sl):
Retrieves sl-th slice of the matrix.
setSlice(sl, value):
Set sl-th slice of the matrix.
ColumnSubsample(subset):
Reorders/subsets the columns according to subset.
Acts as M = M[ ,subset] for a matrix M.
RowReorder(ordr):
Reorders rows according to ordr.
Acts as M = M[ordr, ] for a matrix M.
RowMatrixMultiply(multiplier):
Multiply each row by the multiplier.
Acts as M = M %*% multiplier for a matrix M.
CombineInOneSlice():
Combines all slices into one.
The whole matrix can then be obtained via $getSlice(1).
IsCombined():
Returns TRUE if the number of slices is 1 or 0.
ResliceCombined(sliceSize = -1):
Cuts the data into slices of sliceSize rows.
If sliceSize is not defined,
the value of fileSliceSize field is used.
GetAllRowNames():
Returns all row names in one vector.
RowStandardizeCentered():
Set the mean of each row to zero and the sum of squares to one.
SetNanRowMean():
Impute rows with row mean.
Rows full of NaN values are imputed with zeros.
RowRemoveZeroEps():
Removes rows of zeros and those that are nearly zero.
FindRow(rowname):
Finds row by name.
Returns a pair of slice number an row number within the slice.
If no row is found, the function returns NULL.
rowMeans(x, na.rm = FALSE, dims = 1L):
Returns a vector of row means.
Works as rowMeans but
requires dims to be equal to 1L.
rowSums(x, na.rm = FALSE, dims = 1L):
Returns a vector of row sums.
Works as rowSums but
requires dims to be equal to 1L.
colMeans(x, na.rm = FALSE, dims = 1L):
Returns a vector of column means.
Works as colMeans but
requires dims to be equal to 1L.
colSums(x, na.rm = FALSE, dims = 1L):
Returns a vector of column sums.
Works as colSums but
requires dims to be equal to 1L.