inst/doc/using_meantables.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(dplyr)
library(meantables)

## -----------------------------------------------------------------------------
mtcars %>% 
  mean_table(mpg)

## -----------------------------------------------------------------------------
alpha <- 1 - .99
t <- 1 - alpha / 2

mtcars %>% 
  mean_table(mpg, t_prob = t)

## -----------------------------------------------------------------------------
mtcars %>% 
  mean_table(mpg, output = "all", digits = 5)

## -----------------------------------------------------------------------------
mtcars %>% 
  group_by(cyl) %>% 
  mean_table(mpg, output = "all", digits = 5)

Try the meantables package in your browser

Any scripts or data that you put into this service are public.

meantables documentation built on March 20, 2022, 1:06 a.m.