createDF: createDF

Description Usage Arguments Value Examples

View source: R/psychReportData.R

Description

Create dataframe (see also addDataDF)

Usage

1
2
3
4
5
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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 May 6, 2021, 5:05 p.m.