Code Monkey home page Code Monkey logo

Comments (8)

larmarange avatar larmarange commented on July 19, 2024 1

Right

from broom.helpers.

ddsjoberg avatar ddsjoberg commented on July 19, 2024

@larmarange this is great! What do you think of expanding it to use tidyselect?

I'd you're amenable, I can outline something and implement it in a PR?

from broom.helpers.

larmarange avatar larmarange commented on July 19, 2024

I am open

from broom.helpers.

larmarange avatar larmarange commented on July 19, 2024

I am open for adding tidyselect support. I'm not very familiar with it, but I'm open to it of course.

from broom.helpers.

ddsjoberg avatar ddsjoberg commented on July 19, 2024

I think there will only be a couple of changes to the user experience after implementing tidyselect.

  1. Since the tidyselect both selects and removes columns (e.g. select(age) and select(-age)), the selecting argument would be simplified into a single argument.

  2. I think the current strict= argument would need to be removed. If a user needs to select variables that may or may not be present in the model, they would use the tidyselect function any_of(), e.g. trial %>% select(any_of(c("age", "stage", "NOPE")).

from broom.helpers.

ddsjoberg avatar ddsjoberg commented on July 19, 2024

Great, I"ll get started on it

from broom.helpers.

ddsjoberg avatar ddsjoberg commented on July 19, 2024

Should I add tidyselect to the other functions? Here's what I think it could be used...

  • tidy_plus_plus(show_single_row=)
  • tidy_add_header_rows(show_single_row=)
  • tidy_add_reference_rows(no_reference_row=)

from broom.helpers.

larmarange avatar larmarange commented on July 19, 2024

Yes why not, with pleasure

from broom.helpers.

Related Issues (20)

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.