full_mean: Compare two statements Mean <c2><b1> SEM

Description Usage Arguments Value Examples

View source: R/full_mean.R

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 <c2><b1> SEM unit vs Mean <c2><b1> 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/paprHelper documentation built on May 17, 2019, 7:28 p.m.