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)

processR documentation built on Jan. 23, 2023, 5:44 p.m.