Giter Site home page Giter Site logo

tie's Introduction

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.

library(tie)

iris %>% 
  dplyr::group_by(Species) %>% 
  bow( tie(min, max) := range(Sepal.Length) )
#> # A tibble: 3 x 3
#>   Species      min   max
#>   <fct>      <dbl> <dbl>
#> 1 setosa      4.30  5.80
#> 2 versicolor  4.90  7.00
#> 3 virginica   4.90  7.90

tie's People

Stargazers

Jimmy Briggs avatar Eric Bridgeford avatar David S Butcher avatar Carl Pearson avatar Dan Chaltiel avatar Juli Nagel avatar Robert M Flight avatar Tyler Bradley avatar Vikas Phatak avatar Amir Masoud Abdol avatar Devin Pastoor avatar Michał Bojanowski avatar Michael Sumner avatar Neal Fultz avatar Hiroaki Yutani avatar Dmitrii I avatar Fernando Macedo avatar Jeffrey Arnold avatar  avatar Jake Kaupp avatar Shinya Uryu avatar Thomas Falk avatar Hao Zhu avatar Karthik Ram avatar Mikhail Popov avatar Leo Lee avatar  avatar Greg Werbin avatar Jonathan Carroll avatar Ben Marwick avatar Iñaki Ucar avatar Joshua Kunst avatar Kirill Müller avatar Nicholas Tierney avatar Alexey Shiklomanov avatar Pierre Formont avatar vincent guyader avatar Kun Ren avatar Daniel Falbel avatar Thomas Mailund avatar Konrad Rudolph avatar

Watchers

Enoch Sousa Filho avatar

tie's Issues

can't install

I found a reference to tie here: https://stackoverflow.com/a/52352912/1368860, but I can't install it:

Warning in install.packages :
  package ‘tie’ is not available (for R version 3.5.3)

Maybe there's another way to do the multiple columns from assignment of function output in mutate?

Thanks!

bow-tie for mutate

Hi Romain,

Thanks for this beautiful package, hope it will be integrated to the tidyverse someday.

Is there any way to achieve the bow-tie effect on a mutate call, the same way your function applies it to the summarize call ?

Dan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.