This conversion is helpful mostly for repeated measures design.
long_to_wide_converter(data, x, y, paired = TRUE, ...)
A dataframe (or a tibble) from which variables specified are to be taken. A matrix or tables will not be accepted.
The grouping variable from the dataframe data.
data
The response (a.k.a. outcome or dependent) variable from the dataframe data.
Logical that decides whether the experimental design is repeated measures/within-subjects or between-subjects. The default is FALSE.
FALSE
Currently ignored.
A dataframe in the wide (or Cartesian) format.
# NOT RUN { long_to_wide_converter( data = iris_long, x = condition, y = value, paired = TRUE ) # }
Run the code above in your browser using DataLab