Question
Use two different R syntaxes for extracting *just* the name of Mike Myers' first movie in the mystery.list. My one answer was: mystery.list$MYERS$MOVIES[[1]]$TITLE str(mystery.list) List
Use two different R syntaxes for extracting *just* the name of Mike Myers' first movie in the mystery.list. My one answer was: mystery.list$MYERS$MOVIES[[1]]$TITLE
str(mystery.list)
List of 3
$ MYERS:List of 2
..$ FULLNAME:List of 2
.. ..$ GIVEN: chr "Mike"
.. ..$ LAST : chr "Myers"
..$ MOVIES:List of 3
.. ..$ :List of 3
.. .. ..$ TITLE: chr "Austin Powers: International Man of Mystery"
.. .. ..$ CHARACTER: chr "Austin Powers"
.. .. ..$ YEAR: num 1997
.. ..$ :List of 3
.. .. ..$ TITLE: chr "Austin Powers: The Spy Who Shagged Me"
.. .. ..$ CHARACTER: chr "Austin Powers"
.. .. ..$ YEAR: num 1999
.. ..$ :List of 3
.. .. ..$ TITLE: chr "Bohemian Rhapsody"
.. .. ..$ CHARACTER: chr "Ray Foster"
.. .. ..$ YEAR: num 2018
$ STONE:List of 2
..$ FULLNAME:List of 2
.. ..$ GIVEN: chr "Emma"
.. ..$ LAST : chr "Stone"
..$ MOVIES:List of 2
.. ..$ :List of 3
.. .. ..$ TITLE: chr "La La Land"
.. .. ..$ CHARACTER: chr "Mia"
.. .. ..$ YEAR: num 2016
.. ..$ :List of 3
.. .. ..$ TITLE: chr "The Favourite"
.. .. ..$ CHARACTER: chr "Austin Powers"
.. .. ..$ YEAR: num 2018
$ WEISZ:List of 2
..$ FULLNAME:List of 2
.. ..$ GIVEN: chr "Rachel"
.. ..$ LAST : chr "Weisz"
..$ MOVIES:List of 2
.. ..$ :List of 3
.. .. ..$ TITLE: chr "The Lobster"
.. .. ..$ CHARACTER: chr "Short Sighted Woman"
.. .. ..$ YEAR: num 2015
.. ..$ :List of 3
.. .. ..$ TITLE: chr "The Constant Gardener"
.. .. ..$ CHARACTER: chr "Tessa Quayle"
.. .. ..$ YEAR: num 2005
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