Code Monkey home page Code Monkey logo

Comments (4)

Bisaloo avatar Bisaloo commented on May 29, 2024 1

For context in case anyone stumbles upon this issue. The mutate() issue has been fixed in #54.

If you still encounter issues after update linelist (pak::pak("epiverse-trace/linelist")), please restart your R session and open a new issue with a reproducible example if the error still persists then.

from linelist.

Bisaloo avatar Bisaloo commented on May 29, 2024

Hi Carmen, thanks for the report! I agree compatibility with dplyr should be a priority for linelist.

I can finish the vignette to improve the documentation on this topic. Note however that this will only work for linelist development version for now. You can install the development version with:

pak::pak("epiverse-trace/linelist")

Please give the development version a try and let me know if you are still encountering unexpected behaviour with dplyr 🙏

from linelist.

CarmenTamayo avatar CarmenTamayo commented on May 29, 2024

Hi Hugo, thanks for your prompt response, I tried with the development version and the issue persists with the mutate() function, which adds a new column but also deletes rows, and I've noticed what it does is keep as many rows as columns there are on the df, e.g., if the original df has 12 columns and 500 rows, the new mutated df will have 13 columns and 13 rows.
The other dplyr functions seem to be fine, including filter(), which was also behaving weirdly before and doing the same thing of keeping the number of rows equivalent to the no. of columns.

I think that mutate() is quite a useful function that many people use, so it would be ideal if this could be addressed, otherwise it'd be useful to let users know beforehand.

Many thanks!

from linelist.

CarmenTamayo avatar CarmenTamayo commented on May 29, 2024

Thanks @Bisaloo for your help!

from linelist.

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.