to_row_names | R Documentation |
Converts a column to row names
to_row_names(data, row_names = 1L)
data |
A data.frame |
row_names |
The numeric position of the column. |
A data.frame
x <- data.frame(
a = 1:4,
b = letters[1:4]
)
to_row_names(x)
to_row_names(x, "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.