utils_rows_cols {pliman}R Documentation

Utilities for handling with rows and columns

Description

Usage

column_to_rownames(.data, var = "rowname")

rownames_to_column(.data, var = "rowname")

remove_rownames(.data)

round_cols(.data, digits = 2)

Arguments

.data

A data frame

var

Name of column to use for rownames.

digits

The number of significant figures. Defaults to 2.

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples


library(pliman)
iris2 <- iris |> rownames_to_column()
head(iris2)
iris2$rowname <- paste0("r", iris2$rowname)
iris2 |> column_to_rownames("rowname") |> head()



[Package pliman version 2.1.0 Index]