compare_means_within_groups {uxr} | R Documentation |
Compare Means Within Groups
compare_means_within_groups(
data,
var1,
var2,
input = "wide",
output = "console"
)
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. |
results
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)