View source: R/prettydescribeBy.R
prettydescribeBy | R Documentation |
Format the output of describeBy() as columns for the statistics of different groups
prettydescribeBy(desc_out, y)
desc_out |
Output from describeBy() |
y |
Variable of interest |
Dataframe with outputs from psych::describeBy()
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.