batch_cols | R Documentation |
Identify batches of columns of a matrix that have the same pattern of missing values.
batch_cols(mat, max_batch = NULL)
mat |
A numeric matrix |
max_batch |
Maximum batch size |
A list containing the batches, each with two components:
cols
containing numeric indices of the columns in the
corresponding batch, and omit
containing a vector of row indices
that have missing values in this batch.
batch_vec()
x <- rbind(c( 1, 2, 3, 13, 16),
c( 4, 5, 6, 14, 17),
c( 7, NA, 8, NA, 18),
c(NA, NA, NA, NA, 19),
c(10, 11, 12, 15, 20))
batch_cols(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.