full_mean: Compare two statements Mean ± SEM

Description Usage Arguments Value Examples

Description

Create a sentence comparing two simple means (e.g. from simple_means)

Usage

1
full_mean(means, group, comparison_string = "vs")

Arguments

means

character vector of means.

group

grouping column (e.g. "treatment")

comparison_string

what word/expression do you want to use to compare the means?, Default: "vs"

Value

A string with the format "Mean ± SEM unit vs Mean ± SEM"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
if(interactive()){
 ## Basic example
 x <- rnorm(50 + rnorm(50))
 simple_mean(x, digits = 3)

 ## With units
 simple_mean(iris$Petal.Length, units = "cm")
 }

## End(Not run)

jcpsantiago/ppHelper documentation built on May 14, 2019, 8:02 a.m.