Giter Club home page Giter Club logo

Comments (8)

r2evans avatar r2evans commented on June 14, 2024

What's the purpose of the package? I haven't gone through the roxy-docs for the package yet, what's the purpose for tibble? (I don't mind contributing to the package, but the description is a little brief.)

from tibble.

krlmlr avatar krlmlr commented on June 14, 2024

Eventually, dplyr will import from tibble. This package extracts the functionality around tbl_df from dplyr to make it available for other packages such as tidyr and readr, see also https://github.com/krlmlr/tibble/releases/tag/v0.1 and tidyverse/dplyr#1488.

from tibble.

r2evans avatar r2evans commented on June 14, 2024

Perfect, I understand. Hadley was going to mull over the "if" and "where" of the suggested patch (from hadley/dplyr#1587). Did you have any thoughts on it? I'll be happy to create the PR for it.

from tibble.

krlmlr avatar krlmlr commented on June 14, 2024

How about fix_names() or even repair_names()? I think that for any data frame where tbl_df() raises an error, repair_names() %>% tbl_df() should just work -- this is what also should be tested in the unit tests. Data frames for which tbl_df() already works should not be touched.

We can work on this together and discuss the results with Hadley.

from tibble.

krlmlr avatar krlmlr commented on June 14, 2024

@r2evans: Are you still interested in contributing? This could be useful for as_data_frame.matrix():

> dplyr::as_data_frame(diag(3))
Source: local data frame [3 x 3]

     NA    NA    NA
  (dbl) (dbl) (dbl)
1     1     0     0
2     0     1     0
3     0     0     1

from tibble.

r2evans avatar r2evans commented on June 14, 2024

Yes, thanks for the poke. This is a good test case, too.

from tibble.

hadley avatar hadley commented on June 14, 2024

Seems like this is done, but see #47

from tibble.

github-actions avatar github-actions commented on June 14, 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.