I would like to take a data set like the one below generated using the combn function:
https://i.ibb.co/r0qSmYV/example.jpg
and have it print
1111112223
2223343344
3454544555
the current solutions I have tried are trimws() and gsub(). Any help will be greatly appreciated.