Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Slicing and Subsetting | Core R Data Structures for EDA
Essential R Data Structures for Exploratory Data Analysis
Section 1. Chapter 22
single

single

bookChallenge: Slicing and Subsetting

Swipe to show menu

Task

Swipe to start coding

Subset a data frame based on a condition and select specific columns.

  • Filter rows in df where the value in condition_col equals condition_value.
  • Select only the columns specified in select_cols from the filtered rows.
  • Return the resulting data frame.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 22
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt