Challenges Set 1

Instructions

Use the starwars dataset from the dplyr package (loaded already with tidyverse) to complete the below challenges. I highly recommend all of you to first get to know the starwars dataset by trying the “Get to know your data” functions covered at the beginning of the Week 2 Starter file. Good luck and have fun in completing them:

Challenge1: Reorder the starwars dataset to display characters in order of their height, from the shortest to the tallest.

Challenge2: Keep the characters where species is “Human” and height is greater or equal than 180 and mass is smaller than 100.

Challenge3: Sort the starwars dataset by the mass column in descending order.

Challenge 4: Keep the the characters where homeworld is not “Tatooine” and eye_color is “yellow” or hair_color is “brown”.

🛑 Don’t Click Submit Just Yet 🚧

Please read carefully the below information:

  • Once you have completed all the coding challenges, and your confident in your work, copy and paste your responses from the chunk into the form fields below each challenge.

  • You are responsible for correctly coping and pasting only the required code to solve each challenge 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 challenges 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 this set of challenges!!!