Description Usage Arguments Examples
This function allows you to drop rows and/or columns with all zeros.
1 | drop.all.zeros(mtx, rows = TRUE, columns = TRUE, square.matrix = "none")
|
mtx |
Matrix or dataframe. |
rows |
Drop rows with all zeros. |
columns |
Drop columns with all zeros. |
square.matrix |
Special mode for square matrices ('any' or 'all'). any: if the column or row is full of zeros, delete both; all: if the column or row is not full of zeros, keep both |
1 2 3 | mtx <- drop.all.zeros(mtx)
mtx <- drop.all.zeros(mtx, square.matrix='any')
mtx <- drop.all.zeros(mtx, square.matrix='all')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.