Coder Social home page Coder Social logo

Comments (5)

DillonHammill avatar DillonHammill commented on September 28, 2024

@vorpalvorpal, now that DataEditR uses a modular design (available on the devel branch), it should be possible to add support for such operations. There will be a few things that will need to be figured out:

  • These operations will need to be performed independently of rhandsontable as any call to hot_cols() will mess around with other data editing capabilities. Furthermore, as far as I know rhandsontable only supports sorting of numeric columns.
  • Based on the above point, this means that we could write dataSort and dataFilter modules to handle these operations. The major question would be what should the UI look like? The reason this is not currently implemented is to maximize the space available to display the data for editing - adding additional UI elements will require more scrolling to view the data.
  • To maximize available space, I will need to add arguments to data_edit() to allow control over which modules to include in the application (e.g. logical arguments input, output, edit, sort and filter).
  • There will also be additional complexity in getting the modules to appropriately communicate with one another, for example if you edit a filtered dataset but want to update the entire dataset as well.
  • Changing column order is supported by rhandsontable but has been deliberately turned off for now as it adds another layer of complexity when converting interactive edits into code (still a work in progress). However, I think it may be possible to add back support for this if I simply compare the output data to the original data and convert this into code.

The key will be in designing an appropriate and minimalist UI to support these operations - I will think about it and see if I can come up with something that will work.

from dataeditr.

vorpalvorpal avatar vorpalvorpal commented on September 28, 2024

That's a good point about the UI. I hadn't really thought about that.

from dataeditr.

DillonHammill avatar DillonHammill commented on September 28, 2024

@vorpalvorpal, I just realised that you can actually filter the data by typing in the filtering steps into the data field. For example, if you only wanted to extract/view/edit only the setosa species in iris dataset:
DataEditR-Filter
This also means that you can do things like head(iris) and tail(iris) to look at the top and bottom rows of the data.

from dataeditr.

DillonHammill avatar DillonHammill commented on September 28, 2024

@vorpalvorpal I have added column selection and row filtering modules to the new version of DataEditR that is now available on GitHub.

devtools::install_github("DillonHammill/DataEditR")

from dataeditr.

vorpalvorpal avatar vorpalvorpal commented on September 28, 2024

I just checked it out. Looks awesome! You're a champion.

from dataeditr.

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.