Weekly Coding Checkup 1

Scenario

Welcome! We finally start working on the Dr. B & Class project. During the entire semester you will apply what we learned in class in a set of tasks and scenarios custom designed for you. Please remember that it is important that the code that you submit is your own code and not somebody else work. It is fine to make mistakes but only by practicing in R you can get a better grasp of the software. I also want you to try building your document as an official report for a potential company (Dreaming Diamonds LLC) for which you are getting to know and explore the diamonds dataset (e.g., spend time on storytelling, commenting results and providing insights and conclusions when possible).

TIP: Use the diamonds dataset to solve the below tasks.

Q1: Load the tidyverse package. (1 point)

Q2: Assign the diamonds dataset (loaded with tidyverse) to an object named “diamonds”. Use the ls() function to make sure you have created the object correctly. (1 point)

Q3: Use the mean function to compute the average of the price variable/column. Use the help function to learn more about the mean function. [Hint: use diamonds$price inside the function] (1 point)

Q3b: What is the average price of the diamonds in your dataset? (1 point)

Q4: Use the median function to compute the median of the carat variable/column. Use the help function to learn more about the median function. [Hint: use diamonds$carat inside the function] (1 point)

Q4b: What is the median carat of the diamonds in your dataset? (1 point)

🛑 Don’t Click Submit Just Yet 🚧

Please read carefully the below information:

  • Once you have completed all the coding questions, and you are confident in your work (take advantage of the immediate feedback feature), copy and paste your responses from the chunk into the form fields below each question.

  • You are responsible for correctly coping and pasting only the required code to solve each question. We will grade only what you have submitted!

  • We will only grade 1 submission per student so do not click Submit until you are confident in your responses.

  • By submitting this form you are certifying that you have followed the academic integrity guidelines available in the syllabus. The code and answers submitted are the results of your work and your work only!

  • Make sure you have completed all the questions and included all the required personal information (e.g., full name, email, zid) in the respective form’s fields.

  • Now you are ready to click the above “Submit” button. Congrats you have completed your weekly coding check up!!!