Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

continuous_summary

continuous columns summary


Description

create a data.frame summary for continuous variables

Usage

continuous_summary(
  dat,
  columns = NULL,
  by = character(0),
  hide_grouplabel = TRUE,
  digits = 3
)

Arguments

dat

a data.frame

columns

continuous variables to be summarized. If NULL all continuous variables are summarized.

by

discrete variables to use as groups when summarizing.

hide_grouplabel

if TRUE, group label will not be rendered, only level/value will be rendered.

digits

the desired number of digits after the decimal point

Illustrations

Examples

ft_1 <- continuous_summary(iris, names(iris)[1:4], by = "Species",
  hide_grouplabel = FALSE)
ft_1

flextable

Functions for Tabular Reporting

v0.6.10
GPL-3
Authors
David Gohel [aut, cre], Clementine Jager [ctb], Quentin Fazilleau [ctb], Maxim Nazarov [ctb] (rmarkdown for docx output), Titouan Robert [ctb], Michael Barrowman [ctb] (inline footnotes), Atsushi Yasumoto [ctb] (support for bookdown cross reference), Paul Julian [ctb] (support for gam objects)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.