Summarise values in columns

Hi, can you provide a reproducible example? It will make it easier for others to help you.