dth_as_matrix: Convert a data.table to a matrix easily

View source: R/dth_as_matrix.R

dth_as_matrixR Documentation

Convert a data.table to a matrix easily

Description

Convert a data.table to a matrix easily

Usage

dth_as_matrix(DT, rownames.col = NULL, set.rownames = TRUE)

Arguments

DT

data.table

rownames.col

character of which column to use for the matrix rownames. (Default=NULL)

set.rownames

logical whether to set the rownames from a column within the data.table. (Default=TRUE)


dbrookeUAB/dth documentation built on Oct. 6, 2022, 10:52 p.m.