DillonHammill / DataEditR

An Interactive R Package for Viewing, Entering Filtering and Editing Data
https://dillonhammill.github.io/DataEditR/
384 stars 40 forks source link

[feature request] filter, order and arrange options #6

Closed vorpalvorpal closed 3 years ago

vorpalvorpal commented 4 years ago

Thanks for the great project.

I was wondering if you would be interested in implementing any manipulations of the data. View() allows you to reorder and filter rows by a particular column. This would be quite useful to allow users to better explore and edit the data. For example, I want to edit the values of column 1 only where the value of column 2 is greater than x.

Potentially re-ordering columns might also be useful.

If you think this would be useful, the question would be, should the filtering/ordering/arranging be saved or not. It would be easy to filter a column, do some editing and click save without remembering to remove the filter. This would end up with you losing filtered out rows. Equally, however, there would no doubt be use cases where you want the user to be able to filter rows and then return the smaller filtered data frame...

DillonHammill commented 4 years ago

@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:

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.

vorpalvorpal commented 4 years ago

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

DillonHammill commented 4 years ago

@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.

DillonHammill commented 3 years ago

@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")
vorpalvorpal commented 3 years ago

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