Search code examples
rgwidgets

Drop down list implementation in `gdf`


I am creating an interface that allows users to edit a data frame, which will then be used as an input for the script. The choices the user can input into each cell is limited. Thus, I am wondering if there is a way to implement a gdroplist (with each column having a different a different items) to each cell in gdf?

Regards,

Wet Feet


Solution

  • in gWidgets2RGtk2 the editor in gdf for factors is a combobox where the items to choose from are the levels of the factor. If that works for you great, otherwise you can dust off your RGtk2 skills. (The basic cell editor code is here.)