Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dreamRs/flexpivot

Simple frequency table
https://github.com/dreamRs/flexpivot

r rmarkdown shiny table

Last synced: 3 months ago
JSON representation

Simple frequency table

Awesome Lists containing this project

README

        

# flexpivot

> [{flextable}](https://github.com/davidgohel/flextable) extension to create ready-to-use frequency tables in [shiny](https://shiny.posit.co/) and [rmarkdown](https://rmarkdown.rstudio.com/), and easily exportable to Word, PowerPoint and Excel.

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![R-CMD-check](https://github.com/dreamRs/flexpivot/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dreamRs/flexpivot/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/dreamRs/flexpivot/branch/master/graph/badge.svg)](https://app.codecov.io/gh/dreamRs/flexpivot?branch=master)

## Installation

You can install the development version of {flexpivot} from GitHub with:

```r
remotes::install_github("dreamRs/flexpivot")
```

## Example

```r
library(flexpivot)
library(magrittr)

nobel_laureates %>%
subset(category %in% c("Chemistry", "Physics")) %>%
pivot_table("category", "gender") %>%
pivot_format()
```

![](man/figures/flexpivot.png)

More examples available in the vignette : https://dreamrs.github.io/flexpivot/articles/flexpivot.html

## Related packages

* [crosstable](https://github.com/DanChaltiel/crosstable) & [crosstableAssistant](https://github.com/DanChaltiel/crosstableAssistant) makes it easy to calculate descriptive statistics and export them into Office and has a nice Shiny app to create tables interactively.