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

single

bookChallenge: Grouped Data

Veeg om het menu te tonen

Taak

Veeg om te beginnen met coderen

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 8
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt