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

single

bookChallenge: Conditional Transformations

Glissez pour afficher le menu

Tâche

Glissez pour commencer à coder

Practice applying conditional logic to transform a column in a data frame. You will create a new column based on a condition applied to an existing numeric column.

  • Create a new column named category in the input data frame.
  • For each row, assign "high" to category if the value in the value column is greater than 10.
  • Otherwise, assign "low" to category.
  • Return the modified 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 1. Chapitre 28
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