Calculating percentages

Hi everyone,

thank you for your help last time with creating a graph. I am struggling with calculating the percentages and receiving a tidy usable table using the mutate() function. Unfortunately, all the tutorials online do not seem to work for me and I don't understand what I am doing wrong.

'''
surveyresponses_Freizeit_Master_count=surveyresponses_Freizeit_Master%>% count(.$`Bleibt genug Zeit für Freizeit?`)
'''

After this I receive a table where all the answers per group have been calculated and what I would need is an additional column in which I have the percentages adding up to 100% and I am not sure how to get there... Could anyone please help? I would really like to learn how to do it and to truly understand it, because while I could do it by hand, I do have two more datasets I need to do this for. I appreciate any help.

https://preview.redd.it/ks6vlv7xyn0h1.png?width=874&format=png&auto=webp&s=0a81cc3ef285846578dbd28c60a9f586736983d5

Posted May 12, 2026, 8:05 AM UTC

17
Loading comments…