matrix2df: Make data.frame with matrix

View source: R/matrixPlot.R

matrix2dfR Documentation

Make data.frame with matrix

Description

Make data.frame with matrix

Usage

matrix2df(matrix = c(1, 1, 1, 0, 0, 1), labels = NULL)

Arguments

matrix

a numeric vector

labels

Optional list of labels

Examples

labels=list(X="indep",M=c("med1","med2"),Y="dep")
matrix2df(c(1,1,1,0,0,1),labels=labels)

cardiomoon/processR documentation built on April 20, 2023, 3:38 a.m.