Learn R Programming

uxr (version 0.2.0)

compare_means_within_groups: Compare Means Within Groups

Description

Compare Means Within Groups

Usage

compare_means_within_groups(
  data,
  var1,
  var2,
  input = "wide",
  output = "console"
)

Value

results

Arguments

data

dataframe

var1

variable 1

var2

variable 2

input

Default: "long" - long form of data, "values" to pass values directly. If using this option, must specify mean, sd, and n.

output

Default: "console" - prints output in console and returns tibble invisibly.

Examples

Run this code
data <- data.frame(id = c(1:7),
  task1 = c(4, 1, 2, 3, 8, 4, 4),
  task2 = c(7, 13, 9, 7, 18, 8, 10))
compare_means_within_groups(data, task1, task2)

Run the code above in your browser using DataLab