Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You probably remember from high school that some planets in our solar system have rings and others do not. Unfortunately you can not recall their

You probably remember from high school that some planets in our solar system have rings and others do not. Unfortunately you can not recall their names. Could R help you out?
If you type rings_vector in the console, you get:
[1] false false false false true true true true
This means that the first four observations (or planets) do not have a ring ( FALSE ), but the other four do ( TRUE ). However, you do not get a nice overview of the names of these planets, their diameter, etc. Let's try to use rings_vector to select the data for the four planets with rings.
Instructions
100xP
The code in the editor selects the name column of all planets that have rings. Adapt the code so that instead of only the name column, all columns for planets that have rings are selected.
(
(
(x)
Take Hint XP)
Incorrect Submission
Have you correctly adapted the code to select all columns for the planets that have rings? You can use planets_df[rings_vector, ]. Make sure to include the comma here, it's crucial!
image text in transcribed

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions