Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Working with Variables Suppose you run a dog training business and you want to keep track of your clients. You teach a beginners class that

Working with Variables
Suppose you run a dog training business and you want to keep track of your clients. You teach a beginners class that has 15 clients and an advanced class that has 5 clients.
6. Create the variables numBeginner and numAdvanced to keep track of the given numbers.
```{r}
```
7. Using numBeginner and numAdvanced, create a new variable, numTotal, to calculate the total number of students.
```{r}
```
8. Create a variable (vector) called attendance to track the attendance of those who enrolled in the advanced class. The students were present for the following percentage of classes: 100,90,70,100,100.*Hint: How do you save multiple values in the same variable?*
```{r}
```
9. Calculate the average attendance. *Hint: Use a function, do not calculate by hand ie.(100+90+70+100+100)/5*
```{r}
```
10. Create a variable (vector) called names for the names of the dogs: Max, Barker, Luna, Rover, Spot. *Hint: How does creating a numerical vs categorical variable differ? Refer to Lab 1 or reach out for help!*
```{r}
```
11. Display the variables you've created so far (numBeginner, numAdvanced, numTotal, attendance, names)
```{r}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

1 What are the three key facets of HRP?

Answered: 1 week ago