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
- Host: GitHub
- URL: https://github.com/romainfrancois/tie
- Owner: romainfrancois
- License: other
- Created: 2017-12-19T10:33:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T14:32:44.000Z (almost 6 years ago)
- Last Synced: 2025-04-11T12:47:16.894Z (3 days ago)
- Language: R
- Homepage:
- Size: 6.84 KB
- Stars: 41
- Watchers: 1
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - romainfrancois/tie - Multiple output version of dplyr::summarise (R)
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) )
```