powered by
columns_to_rownames(): Move a column of .data to its row names.
columns_to_rownames()
.data
rownames_to_column(): Move the row names of .data to a new column.
rownames_to_column()
remove_rownames(): Remove the row names of .data.
remove_rownames()
round_cols() Rounds the values of all numeric variables to the specified number of decimal places (default 2).
round_cols()
column_to_rownames(.data, var = "rowname")rownames_to_column(.data, var = "rowname")remove_rownames(.data)round_cols(.data, digits = 2)
rownames_to_column(.data, var = "rowname")
remove_rownames(.data)
round_cols(.data, digits = 2)
A data frame
Name of column to use for rownames.
The number of significant figures. Defaults to 2.
2.
Tiago Olivoto tiagoolivoto@gmail.com
# \donttest{ library(pliman) iris2 <- iris |> rownames_to_column() head(iris2) iris2$rowname <- paste0("r", iris2$rowname) iris2 |> column_to_rownames("rowname") |> head() # }
Run the code above in your browser using DataLab