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

https://github.com/romainfrancois/tie

Multiple output version of dplyr::summarise
https://github.com/romainfrancois/tie

Last synced: 1 day ago
JSON representation

Multiple output version of dplyr::summarise

Awesome Lists containing this project

README

        

---
output:
md_document:
variant: markdown_github
---

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

# tie

`bow` and `tie` can be combined to do something similar to `dplyr::summarise`,
but allowing to express how to redistribute parts of the results to their own
column.

```{r}
library(tie)

iris %>%
dplyr::group_by(Species) %>%
bow( tie(min, max) := range(Sepal.Length) )
```