ggstatsplot (version 0.0.10)

long_to_wide_converter: Converts long-format dataframe to wide-format dataframe

Description

This conversion is helpful mostly for repeated measures design.

Usage

long_to_wide_converter(data, x, y, paired = TRUE)

Arguments

data

A dataframe (or a tibble) from which variables specified are to be taken. A matrix or tables will not be accepted.

x

The grouping variable from the dataframe data.

y

The response (a.k.a. outcome or dependent) variable from the dataframe data.

paired

A logical that indicates whether the design was repeated measures (within-subjects) or between-subjects (default: TRUE).

Examples

Run this code
# NOT RUN {
ggstatsplot:::long_to_wide_converter(
  data = iris_long,
  x = condition,
  y = value,
  paired = TRUE
)
# }

Run the code above in your browser using DataLab