# for reproducibility
library(statsExpressions)
set.seed(123)
# repeated measures design
long_to_wide_converter(
bugs_long,
condition,
desire,
subject.id = subject,
paired = TRUE
)
# independent measures design
long_to_wide_converter(mtcars, cyl, wt, paired = FALSE)
Run the code above in your browser using DataLab