Question: # Use the table from the exercise to define the comments and scores vectors scores < - c ( 4 . 6 , 5 ,

# Use the table from the exercise to define the comments and scores vectors
scores <- c(4.6,5,4.8,5,4.2)
comments <- list("I would watch it again","Amazing!","I liked it","One of the best movies","Fascinating plot")
# Save the average of the scores vector as avg_review
avg_review<-mean(scores)
# Combine scores and comments into the reviews_df data frame
reviews_df<- data.frame(scores,comments)
# Create and print out a list, called departed_list
departed_list<-list(title="The Departed",actors=movie_actors,reviews=reviews_df,average_review=avg_review)
print(departed_list)

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!