1

How do you calculate the percentage of total sales for each category in dplyr?

Correct Answer: mutate(percentage_sales = sales / sum(sales) * 100)

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: How do you calculate the percentage of total sales for each category in dplyr? | Extra Education