View source: R/psychReportData.R
createDF | R Documentation |
Create dataframe (see also addDataDF)
createDF( nVP = 20, nTrl = 50, design = list(A = c("A1", "A2"), B = c("B1", "B2")) )
nVP |
Number of participants |
nTrl |
Number of trials per factor/level for each participant |
design |
Factors and levels |
dataframe
# Example 1 dat <- createDF() # Example 2 dat <- createDF(nVP = 50, nTrl = 50, design = list("Comp" = c("comp", "incomp"))) # Example 3 dat <- createDF(nVP = 50, nTrl = 50, design = list( "Comp" = c("comp", "incomp"), "Side" = c("left", "right", "middle") ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.