ipmisc (version 1.2.0)

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

Logical that decides whether the experimental design is repeated measures/within-subjects or between-subjects. The default is FALSE.

...

Currently ignored.

Value

A dataframe in the wide (or Cartesian) format.

Examples

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

Run the code above in your browser using DataLab