getCols | R Documentation |
Returns a subset of columns based on their names and optionally removes columns with only NA or zero values. Reports the number of missing columns.
getCols(
mat,
colnamez,
silent = FALSE,
removeNAonly = FALSE,
remove0only = FALSE
)
mat |
Input matrix. |
colnamez |
Vector of column names to search for in the matrix. |
silent |
Logical indicating whether to suppress printing of missing columns. Default: FALSE |
removeNAonly |
Logical indicating whether to remove columns with only NA values. Default: FALSE |
remove0only |
Logical indicating whether to remove columns with only zero values. Default: FALSE |
A matrix that is a subset of the input matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.