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.
Posted May 12, 2026, 8:05 AM UTC