Convert posthoc pairs to compact display letters in a table

Hello eveyone,

Did anyone try to assign compact display letters after anova posthoc analysis from the pairs between the significantly different groups, doing it manually is not that fun to do.

PS: The output is needed in a table and not in the pLot