powered by
Converts a column to row names
to_row_names(data, row_names = 1L)
A data.frame
data.frame
The numeric position of the column.
x <- data.frame( a = 1:4, b = letters[1:4] ) to_row_names(x) to_row_names(x, "b")
Run the code above in your browser using DataLab