.complCols {wrMisc} | R Documentation |
Search (complementing) columns for best coverage of non-NA data for rowNormalization (main)
Description
This function was designed to complete the selection of columns of sparse matrix 'dat' with sets of 'nCombin' columns at complete 'coverage' Context : In sparse matrix 'dat' search subsets of columns with some rows as complete (no NA).
Usage
.complCols(x, dat, nCombin)
Arguments
x |
(integer, length=1) column number for with other columns to combine & give (some) complete non-NA lines are seeked |
dat |
(matrix) .. init data, smay be parse matrix with numerous NA |
nCombin |
(integer) .. number of columns used to make complete subset |
Value
This function returns a matrix of column-indexes complementing (nCombin rows)
See Also
Examples
.complCols(3, dat=matrix(c(NA,12:17,NA,19),ncol=3), nCombin=3)
[Package wrMisc version 1.15.1 Index]