as_matrix: Converts a data-frame into a matrix

Description Usage Arguments

View source: R/matrix.R

Description

If the user specifies 'rowname_col', this column is extracted from the data-frame and used to define the rownames of the matrix (the original column is removed).

Usage

1
as_matrix(x, rowname_col = NULL)

Arguments

x

A data-frame to be converted to a matrix.

rowname_col

An (optional) column of the data-frame that is to be extracted into the rownames of the returned matrix.


russHyde/warper documentation built on Jan. 9, 2020, 12:36 a.m.