rownames_to_column.matrix: Move rownames to a column for a matrix, then convert to...

View source: R/tidy.R

rownames_to_column.matrixR Documentation

Move rownames to a column for a matrix, then convert to data.frame

Description

Inspired by rownames_to_column but not a proper extension of it (yet).

Usage

rownames_to_column.matrix(mat, var = "rowname", stringsAsFactors = FALSE)

Arguments

mat

A matrix.

var

Name of new column to use for rownames. If the column exists, a period will be prepended until a unique column name is found.

stringsAsFactors

Logical. When casting to data.frame, should character vectors be converted to factors?


saraemoore/SLScreenExtra documentation built on Nov. 4, 2023, 9:31 p.m.