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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!