createDF: createDF

View source: R/psychReportData.R

createDFR 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")
))

psychReport documentation built on Sept. 9, 2022, 5:08 p.m.