knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

describer

CRAN_Status_Badge Downloads from the RStudio CRAN mirror Build Status Build status codecov.io Project Status: Active - The project has reached a stable, usable state and is being actively developed.

describer quickly and easily describes data using common descriptive statistics.

Installation

You can install the latest development version from CRAN:

install.packages("describer")
````

Or from GitHub with:

```R
if (packageVersion("devtools") < 1.6) {
  install.packages("devtools")
}
devtools::install_github("paulhendricks/describer")

If you encounter a clear bug, please file a minimal reproducible example on GitHub.

API

library(dplyr, warn.conflicts = FALSE)
library(describer)

mtcars %>% 
  describe %>% 
  knitr::kable(format = "markdown")

mtcars %>% 
  group_by(cyl) %>% 
  do(describe(.)) %>% 
  knitr::kable(format = "markdown")

To mimic the exact pandas.describe() behavior, use pd_describe.

library(reshape2)

pandas_describe_mtcars <- 
  mtcars %>% 
  pd_describe

pandas_describe_mtcars %>% 
  knitr::kable(format = "markdown")

str(pandas_describe_mtcars)

Citation

To cite package ‘describer’ in publications use:

Paul Hendricks (2015). describer: Describe Data in R Using Common Descriptive Statistics. R package version 0.2.0. https://CRAN.R-project.org/package=describer

A BibTeX entry for LaTeX users is

@Manual{,
  title = {describer: Describe Data in R Using Common Descriptive Statistics},
  author = {Paul Hendricks},
  year = {2015},
  note = {R package version 0.2.0},
  url = {https://CRAN.R-project.org/package=describer},
}


paulhendricks/describer documentation built on May 24, 2019, 8:27 p.m.