Description Usage Arguments Value Examples
Convert data.frame to matrix with Subjects on rows and items on columns
1 |
df |
dataframe to convert to a matrix |
dv |
name of column with observations to be put on columns |
matrix with Subjects on the rows and items on the column
1 2 | trial.mat(data.frame(Subject=rep(1:2, each=3), 1:6))
trial.mat(data.frame(Subject=rep(1:2, each=3), a=1:6, b=11:16), dv='b')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.