Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Creating a new list for another movie You found reviews of another, more recent, Jack Nicholson movie: The Departed! Scores Comments 4 . 6 I
Creating a new list for another movie
You found reviews of another, more recent, Jack Nicholson movie: The Departed!
Scores Comments
I would watch it again
Amazing!
I liked it
One of the best movies
Fascinating plot
It would be useful to collect together all the pieces of information about the movie, like the title, actors, and reviews into a single variable. Since these pieces of data are different shapes, it is natural to combine them in a list variable.
movietitle, containing the title of the movie, and movieactors, containing the names of some of the actors in the movie, are available in your workspace.
Instructions
XP
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 avgreview.
Combine the scores and comments vectors into a data frame called reviewsdf
Create a list, called departedlist, that contains the movietitle, movieactors, reviews data frame as reviewsdf and the average review score as avgreview, and print it out.
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