Question
Instructions: -Create two vectors, called scores and comments, that contain the information from the reviews shown in the table. -Find the average of the scores
Instructions: -Create two vectors, called scores and comments, that contain the information from the reviews shown in the table.
-Find the average of the scores vector and save it as avg_review.
-Combine the scores and comments vectors into a data frame called reviews_df.
-Create a list, called departed_list, that contains the movie_title, movie_actors, reviews data frame as reviews_df, and the average review score as avg_review, and print it out.
# Use the table from the exercise to define the comments and scores vectors scores <- c(4.6, 5, 4.8, 5, ___ comments <- c("I would watch it again", "Amazing!", "I liked it", "One of the best movies", ___
# Save the average of the scores vector as avg_review
# Combine scores and comments into the reviews_df data frame
# Create and print out a list, called departed_list
Please help me I'm so lost. I need a straightforward answer, please tell me exactly what to write on each line! Thank you so much :)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started