tests/testthat/helper-long-to-wide.R

# within- and between-subjects data, first without and then with `NA`s
convert_example_data <- function(spread) {
  list(
    long_to_wide_converter(iris_long, condition, value, spread = spread),
    long_to_wide_converter(mtcars, am, wt, paired = FALSE, spread = spread),
    long_to_wide_converter(bugs_long, condition, desire, spread = spread),
    long_to_wide_converter(
      msleep,
      vore,
      brainwt,
      paired = FALSE,
      spread = spread
    )
  )
}

Try the statsExpressions package in your browser

Any scripts or data that you put into this service are public.

statsExpressions documentation built on Oct. 17, 2026, 9:06 a.m.