powered by
Compare Means Within Groups
compare_means_within_groups( data, var1, var2, input = "wide", output = "console" )
results
dataframe
variable 1
variable 2
Default: "long" - long form of data, "values" to pass values directly. If using this option, must specify mean, sd, and n.
Default: "console" - prints output in console and returns tibble invisibly.
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