createDF {psychReport} | R Documentation |
createDF
Description
Create dataframe (see also addDataDF)
Usage
createDF(
nVP = 20,
nTrl = 50,
design = list(A = c("A1", "A2"), B = c("B1", "B2"))
)
Arguments
nVP |
Number of participants |
nTrl |
Number of trials per factor/level for each participant |
design |
Factors and levels |
Value
dataframe
Examples
# 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")
))
[Package psychReport version 3.0.2 Index]