Make data.frame with matrix
Make data.frame with matrix
matrix2df(matrix = c(1, 1, 1, 0, 0, 1), labels = NULL)
matrix |
a numeric vector |
labels |
Optional list of labels |
labels=list(X="indep",M=c("med1","med2"),Y="dep") matrix2df(c(1,1,1,0,0,1),labels=labels)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.