matrify: take a data.table/frame, shave first column into rownames,...

View source: R/package.R

matrifyR Documentation

take a data.table/frame, shave first column into rownames, make a matrix

Description

convenience function to convert to matrix and optionally filter out the first column which may be rownames that are not relevant to further data analysis

Usage

matrify(obj, rm_col1 = TRUE, use.c1.rownames = TRUE)

Arguments

obj

a data.frame or matrix

rm_col1

a logical vector specifying if the 1st column should be removed

Value

a matrix


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.