shrinkRownames: Shrink Row Names

View source: R/shrinkRownames.R

shrinkRownamesR Documentation

Shrink Row Names

Description

Convert row names to integers.

Usage

shrinkRownames(x, force = FALSE)

Arguments

x

a data frame.

force

whether to overwrite current row names with integers 1, 2, 3, ..., n.

Value

Same data frame, possibly with integer row names.

Note

The default behavior is to convert row names only if they are strings representing integers: "1", "2".


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.