Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logidata+ Deductive Databases With Complex Objects Lncs 701

Authors: Paolo Atzeni

1st Edition

354056974X, 978-3540569749

More Books

Students also viewed these Databases questions

Question

Does it avoid using personal pronouns (such as I and me)?

Answered: 1 week ago

Question

Does it clearly identify what you have done and accomplished?

Answered: 1 week ago