Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Sorting and Ordering | Core R Data Structures for EDA
/
Essential R Data Structures for Exploratory Data Analysis
Section 1. Chapitre 20
single

single

bookChallenge: Sorting and Ordering

Glissez pour afficher le menu

Tâche

Glissez pour commencer à coder

Sort a data frame by multiple columns and explain the result.

  • The function must return a new data frame sorted first by the Department column in ascending order, and then by the Salary column in ascending order within each department.
  • The function must not modify the original data frame.
  • The function must work for any data frame with at least the columns Department and Salary.

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 1. Chapitre 20
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

some-alt