From the course: Complete Your First Project in R

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

How to analyze sales employees

How to analyze sales employees

- [Instructor] Now that you've spent some time getting to know Red30 Tech customers, let's spend some time getting to know the sales employees who interact and make sales with these customers. Note that you'll use a lot of the same code and techniques from the previous videos for this employee analysis. So you click your run first code to get your data and packages all loaded in. And let's begin by sorting the data by order total. So again, to do this, you'll do sales and order it with these sales, Order Total column and have the decreasing equal TRUE. And again, make sure you add that comma at the end. And so here you could see the top employees as far as the order total, as far as the highest dollar amount order that they sold, so you have Wyatt, Willow, and Ben. Let's do what we did last time and copy and paste this. But this time you'll do it for order quantity, so you'll sort this. And so you can see Ben, Corey, and Anthony have those top orders by the order quantity. Next, let's…

Contents