Learn R Programming

ezsummary (version 0.1.9)

ezsummary_quantitative: Simple Summary for Quantitative/binary variables

Description

Function ezsummary_quantitative provides simple summary (Mean and standard deviation with/without N) for quantitative data while function ezsummary_binary provides simple summary (freq and percentage with/without total counts) for binary data. These two function are simply wrappers outside of a summarise_each function. If we just want to know the most basic statistical summary, this function can save us some typing time. It also provide the option to include number of subjects inside the analyses.

Usage

ezsummary_quantitative(tbl, n = FALSE, mean = TRUE, sd = TRUE,
  sem = FALSE, median = FALSE, quantile = FALSE, round.N = 3,
  flavor = "long", unit_markup = NULL)

Arguments

Value

It will return in the same format as a summarise_each function does

Examples

Run this code
library(dplyr)
mtcars %>% group_by(am) %>% select(mpg, wt, qsec) %>% ezsummary_quantitative()

Run the code above in your browser using DataLab