prettydescribeBy: Pretty formatting for psych::describeBy()

View source: R/prettydescribeBy.R

prettydescribeByR Documentation

Pretty formatting for psych::describeBy()

Description

Format the output of describeBy() as columns for the statistics of different groups

Usage

prettydescribeBy(desc_out, y)

Arguments

desc_out

Output from describeBy()

y

Variable of interest

Value

Dataframe with outputs from psych::describeBy()

Examples

mydata <- data.frame(x = c(rep("Control", 50), rep("Treatment", 50)), y = c(1:50,101:150))
psych::describeBy(mydata, group = "x") %>% prettydescribeBy(y = "y")

Aaron0696/aaRon documentation built on July 27, 2023, 2:05 p.m.