How to create R tables with expandable rows