Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paulhendricks/describer

Describe data in R
https://github.com/paulhendricks/describer

Last synced: 6 days ago
JSON representation

Describe data in R

Awesome Lists containing this project

README

        

---
output:
github_document
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

# describer

[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/describer)](http://cran.r-project.org/package=describer)
[![Downloads from the RStudio CRAN mirror](http://cranlogs.r-pkg.org/badges/describer)](http://cran.rstudio.com/package=describer)
[![Build Status](https://travis-ci.org/paulhendricks/describer.png?branch=master)](https://travis-ci.org/paulhendricks/describer)
[![Build status](https://ci.appveyor.com/api/projects/status/jyh7mh23q1htalww/branch/master?svg=true)](https://ci.appveyor.com/project/paulhendricks/describer/branch/master)
[![codecov.io](http://codecov.io/github/paulhendricks/describer/coverage.svg?branch=master)](http://codecov.io/github/paulhendricks/describer?branch=master)
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/0.1.0/active.svg)](http://www.repostatus.org/#active)

`describer` quickly and easily describes data using common descriptive statistics.

## Installation

You can install the latest development version from CRAN:

```R
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](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) on [GitHub](https://github.com/paulhendricks/describer/issues).

## API

```{r}
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`.

```{r}
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},
}
```