Abschnitt 1. Kapitel 8
single
Challenge: Grouped Data
Swipe um das Menü anzuzeigen
Aufgabe
Wischen, um mit dem Codieren zu beginnen
Group a tibble by a categorical variable and calculate the mean of a numeric column for each group.
- Group the tibble
dfby the column specified bygroup_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_valuecontaining the mean for each group.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 8
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen