Coder Social home page Coder Social logo

NSE in multi_cutpointr? about cutpointr HOT 3 CLOSED

thie1e avatar thie1e commented on May 30, 2024
NSE in multi_cutpointr?

from cutpointr.

Comments (3)

xrobin avatar xrobin commented on May 30, 2024

Oh and I see the same behavior for the roc function...

from cutpointr.

Thie1e avatar Thie1e commented on May 30, 2024

Hi, thanks for the suggestion and nice to hear from you. The roc function was designed for optimal speed and thus we didn't add support for NSE. Also, it wasn't exported in earlier versions and only became user-facing later.

I think the help pages describe the use of the functions correctly, but I must agree that the behavior is somewhat inconsistent.

On a more general note: When cutpointr was designed, it wasn't already clear what would be the best way to do NSE and by now it seems that the way the tidyverse is doing it now (with !! and so on) is the way forward. It would be best to eventually deprecate cutpointr_, deprecate the use of quoted arguments in roc and multi_cutpointr (and possibly other functions?) and support the "rlang-way" throughout the package. I have to admit that I had this in mind for a while already, but it would to take some time to rewrite the functions. I'll mark this as an enhancement.

from cutpointr.

Thie1e avatar Thie1e commented on May 30, 2024

As of version 1.0.0 all main functions (cutpointr, multi_cutpointr, and roc) make use of tidyeval, so the arguments can be quoted or unquoted and the !! operator works. Only the x argument of multi_cutpointr stays a character vector. cutpointr_ is deprecated.

from cutpointr.

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.