Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre 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

Tâche

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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Filter and Sort Data

Glissez pour afficher le menu

Tâche

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 desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 6
single

single

some-alt