I have used the very nice grouping macro described here:
I would like to be able to use it with data that I have read from a file. How can that be achieved? Instead of the data table written into the tex file, I would like to have it outside, in its own file. How can I do that so that the references to \datatable in the grouping function still work?