View source: R/removerowsandorcolumns.R
RemoveRowsAndOrColumns | R Documentation |
Given tabular data and character vectors or delimited strings of row and column
names, produces a table with the specified rows and columns removed. Where a
list is supplied, column.names.to.remove
are applied to the list.
RemoveRowsAndOrColumns(
x,
row.names.to.remove = c("NET", "Total", "SUM"),
column.names.to.remove = c("NET", "Total", "SUM"),
split = "[;,]"
)
x |
Data to remove rows and columns from; can be a matrix or data.frame or a list of matrices and data.frames. |
row.names.to.remove |
A vector or comma-separated string containing the row labels to remove. |
column.names.to.remove |
A vector or comma-separated string containing the column labels to remove. |
split |
Character delimiter to split |
Trailing spaces are removed and lower/upper case is ignored.
x
with the rows specified in row.names.to.remove
and
columns specified in column.names.to.remove
removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.