Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

matrix2df

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

Implementation of the 'PROCESS' Macro

v0.2.6
GPL-2
Authors
Keon-Woong Moon [aut, cre], Sokyoung Hong [ctb]
Initial release
2021-1-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.