Question: Using RStudio write out the functions for the following tasks and questions. Tasks 1. Read the data from the CSV file into a tibble. To
Using RStudio write out the functions for the following tasks and questions.
Tasks 1. Read the data from the CSV file into a tibble. To do that, you can use the read_csv() function likethis: ramen <- read_csv("ramen-ratings.csv") 2. Display the tibble on the console. 3. Display the last five rows of the tibble on the console. 4. Use the summary() function to display statistical information for the numeric column in the tibble. 5. Display only the Country column. 6. Display only the Brand and Country columns. 7. Display a tibble that displays the number of rows for each country. 8. Display a tibble that displays the mean number of stars for each country. 9. Assign the tibble created by the previous task to a variable named mean_stars. 10. Save the tibble named mean_stars to an RDS file.
Questions: 1. How many countries are represented in the data? 2. Which three countries have the highest average rating? (Use RStudio to view the mean_stars tibble and sort the data.) 3. Which three countries have the lowest average rating? (Use RStudio to view the mean_stars tibble and sort the data.)
***make sure photos are fully visible.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
