Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# 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
comments listI would watch it again","Amazing!","I liked it"One of the best movies","Fascinating plot"
# Save the average of the scores vector as avgreview
avgreviewmeanscores
# Combine scores and comments into the reviewsdf data frame
reviewsdf data.framescorescomments
# Create and print out a list, called departedlist
departedlistlisttitle"The Departed",actorsmovieactors,reviewsreviewsdfaveragereviewavgreview
printdepartedlist
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