Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Filter and Sort Data | R Data Frames Tutorial
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Working with Data Structures in R

bookChallenge: Filter and Sort Data

Task

Swipe to start coding

Filter a data frame to show only students who passed, and sort the results by their scores.

  • Select only the rows in df where the passed column is TRUE.
  • Sort the resulting rows in descending order based on the score column.
  • Return the filtered and sorted data frame.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 6
single

single

Ask AI

expand

Ask AI

ChatGPT

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

Suggested prompts:

Can you explain this in simpler terms?

What are some examples related to this topic?

Where can I learn more about this?

close

bookChallenge: Filter and Sort Data

Swipe to show menu

Task

Swipe to start coding

Filter a data frame to show only students who passed, and sort the results by their scores.

  • Select only the rows in df where the passed column is TRUE.
  • Sort the resulting rows in descending order based on the score column.
  • Return the filtered and sorted 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Β 2. ChapterΒ 6
single

single

some-alt