View source: R/tidytabulardata.R
TidyTabularData | R Documentation |
Creates tables that are ensured to be in a tidy format. Output is
guaranteed to always have row and column names and there is special
handling of arrays and tables from Q
.
TidyTabularData(
x,
date = FALSE,
row.names.to.remove = NULL,
col.names.to.remove = NULL,
transpose = FALSE,
split = "[;,]",
hide.empty.rows.and.columns = FALSE,
...
)
x |
Numeric matrix or vector; should be named, but if names are not present they will be created in the output |
date |
Optional vector of dates, which if supplied, will be
used for the row names of the returned table; must be unique
and have the same length or number of rows of |
row.names.to.remove |
Character vector or delimited string of row labels specifying rows to remove from the returned table. |
col.names.to.remove |
Character vector or delimited string of column labels specifying columns to remove from the returned table |
transpose |
logical; if |
split |
Character delimiter to split
|
hide.empty.rows.and.columns |
Logical; if |
... |
Additional arguments passed to
|
If x
is not a numeric vector or matrix, an attempt
will be made to coerce it to one using
AsTidyTabularData
.
If a named vector is created from x
, then
row.names.to.remove
and col.names.to.remove
will be
combined (using base:union
) to determine entries to remove.
A named matrix or vector; a tidy version of x
.
If transpose == TRUE
, then the table is transposed
before rows and columns are removed, so
row.names.to.remove
should be specified according to the
rownames of the transposed table, as should
col.names.to.remove
AsTidyTabularData
, HideEmptyRowsAndColumns
,
RemoveRowsAndOrColumns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.