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/SLWeightedScreen documentation built on Nov. 7, 2023, 5:18 a.m.