View source: R/hideemptyrowsandcolumns.R
HideEmptyRowsAndColumns | R Documentation |
Searches for empty rows or columns in a table and returns a copy with those entries removed
HideEmptyRowsAndColumns(x, is.percent = NULL)
x |
matrix; vector; or list |
is.percent |
logical; indicating whether the supplied data are
percentages; specifying a value of |
x
with any empty rows or columns removed; or in the
case x
is vector, x
with any empty entries
removed
GetNonEmptyRowsAndColumns
x <- matrix(nrow = 2, ncol = 2)
x[1, ] <- 1
HideEmptyRowsAndColumns(x)
x[2, ] <- 0
HideEmptyRowsAndColumns(x, is.percent = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.