I was thinking, perhaps it would be an easy win to provide an "EXPORT OPERATIONS" button to the Data Viewer, such that after a user has investigated quite some stuff, clicking the button would dump out into the console the code that one needs to recreate that view using code.
So for example, say I'm navigating
iris in the Data Viewer... and I finally find that I'm happy after arranging by the
Petal.Length, and filtering the
Species. It looks like this:
It would be cool if there would be some button that would output the code to generate that data.frame:
iris %>% arrange(Petal.Length) %>% filter(Petal.Width >= 2, Species == "virginica")
That way, our explorations in the Data Viewer could be an integral part of the EDA which would subsequently allow us to continue working on that reduced dataset.
What do you all think?