Code Monkey home page Code Monkey logo

Comments (5)

hadley avatar hadley commented on June 1, 2024

That would mean we'd need to deprecate (and eventually remove) tibble().

What would you think of that @jennybc?

from tibble.

krlmlr avatar krlmlr commented on June 1, 2024

Alternative option: We prominently link to package?tibble from ?tibble from the first paragraph of the "Description" section.

from tibble.

jennybc avatar jennybc commented on June 1, 2024

You're making me wonder if I know the difference between tibbles and tbl_df. When I say "a tibble", I think I mean a tbl_df. Am I confused? When you say tbl_df above, do you mean data.frame?

Regardless, I think you're saying it makes sense to use tibble as a place to document tibbles. So the function tibble() needs to get out of the way, i.e. only be known as frame_data(). That seems OK.

This brings up a question and it seems a decent place to ask it:

  • To turn sthg into a tibble, are you supposed to use tibble::as_data_frame()? Or dplyr::as.tbl()? Why isn't it tibble::as_tbl_df()? I guess because data_frame() exists? There are a lot of ways to get confused here.

from tibble.

hadley avatar hadley commented on June 1, 2024

I think of data_frame() and as_data_frame() as parallels of data.frame() and as.data.frame() in the same way that read_csv() is a parallel of read.csv(). But maybe that's too clever?

It would be more consistent to have tibble() as the standard creation method and as_tibble() as the standard coercion method. We should probably keep data_frame() and as_data_frame() but de-emphasise them in the documentation.

from tibble.

github-actions avatar github-actions commented on June 1, 2024

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

from tibble.

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.