I think it would be reasonable to implement an interface to the tidyr package. The implementation would allow to lazily process ArrowTables before put it back into the memory. However, currently you need to collect the table first before applying tidyr methods. The following code chunk shows an example routine:
The main focus might be the following three methods:
- tidyr::pivot_[longer|wider](), and
I suppose the last two can be fairly quickly implemented, but tidyr::nest() and tidyr::unnest() cannot be implement before conversion to List<Struct> will be accessible.