Description Usage Arguments Details Value Note Examples
Automatically detect row names column, if defined.
1 2 3 4 5 6 7 8 9 10 11 12 13 | matchRowNameColumn(object, ...)
## S4 method for signature 'data.frame'
matchRowNameColumn(
object,
choices = c("rn", "row.name", "row.names", "rowname", "rownames")
)
## S4 method for signature 'DataFrame'
matchRowNameColumn(
object,
choices = c("rn", "row.name", "row.names", "rowname", "rownames")
)
|
object |
Object. |
... |
Additional arguments. |
choices |
|
The data.table package uses "rn" by default, whereas tibble uses "rowname".
character(1)
or NULL
.
data.table: "rn"
.
tibble: "rowname"
.
Updated 2019-10-22.
1 2 3 4 5 6 7 | data(data.table, tbl_df, package = "acidtest")
## data.table ====
matchRowNameColumn(data.table)
## tbl_df ====
matchRowNameColumn(tbl_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.