Code Monkey home page Code Monkey logo

Comments (4)

jennybc avatar jennybc commented on July 22, 2024

I want to say "Amen!": this is something that both readr and readxl allow (and, I think, people really use) and it would be nice to make available in more circumstances.

from vctrs.

hadley avatar hadley commented on July 22, 2024

It now occurs to me that the way to implement this is as a new vector type. Then it would be straightforward to implement custom coercing and casting semantics using the existing framework.

from vctrs.

hadley avatar hadley commented on July 22, 2024

This would also be nice if we implemented a vec_assert() function - then you could assert that a data frame input had at least the columns that you needed (while not caring about any extras) .

from vctrs.

hadley avatar hadley commented on July 22, 2024

Some experiments checked in to local partial branch — it's totally do-able, but it requires more time than I have right now (it's a bit more complicated than I anticipated). Mostly need to think about what vec_type2(partial(), data.frame()) should return

from vctrs.

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.