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

single

bookChallenge: Grouped Data

Glissez pour afficher le menu

Tâche

Glissez pour commencer à coder

Group a tibble by a categorical variable and calculate the mean of a numeric column for each group.

  • Group the tibble df by the column specified by group_col.
  • For each group, calculate the mean of the column specified by num_col.
  • Return a tibble with one row per group and a column named mean_value containing the mean for each group.

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 8
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