get_design_long: Get design from long data

Description Usage Arguments Details Value

View source: R/get_design_long.R

Description

Makes a best guess at the design of a long-format data frame.

Usage

1
2
3
4
5
6
get_design_long(
  data,
  dv = c(y = "score"),
  id = c(id = "id"),
  plot = faux_options("plot")
)

Arguments

data

the data frame (in long format)

dv

the column name that identifies the DV

id

the column name(s) that identify a unit of analysis

plot

whether to show a plot of the design

Details

Finds all columns that contain a single value per unit of analysis (between factors), all columns that contain the same values per unit of analysis (within factors), and all columns that differ over units of analysis (dv, continuous factors)

Value

a design list


faux documentation built on Sept. 14, 2021, 1:08 a.m.