long_to_wide_converter

0th

Percentile

Converts long-format dataframe to wide-format dataframe

This conversion is helpful mostly for repeated measures design.

Keywords
internal
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).

Aliases
  • long_to_wide_converter
Examples
# NOT RUN {
ggstatsplot:::long_to_wide_converter(
  data = iris_long,
  x = condition,
  y = value,
  paired = TRUE
)
# }
Documentation reproduced from package ggstatsplot, version 0.0.11, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.