| VecAlignment {BiCausality} | R Documentation |
VecAlignment function
Description
This function rearranges the samples in the mat into
an aligned list of transactions, which is mainly used by other functions in the package.
Suppose mat[i,] is a binary vector we are interested, we use A<-bin2dec(mat[i,])
to store the decimal value of mat[i,] in A. Then, we call D[[A]]$count
to get number of samples in mat that are similar to mat[i,] and
the D[[A]]$name is mat[i,].
Usage
VecAlignment(mat)
Arguments
mat |
is a matrix n by d where n is a number of transactions or samples and d is a number of dimensions. |
Value
This function returns an aligned list of transactions D, is an aligned list of transactions that was converted from any matrix n by d mat.
Examples
VecAlignment(mat=mat)
[Package BiCausality version 0.1.4 Index]