Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Hierarchical Indexing | Core R Data Structures for EDA
Essential R Data Structures for Exploratory Data Analysis
Section 1. Chapter 18
single

single

bookChallenge: Hierarchical Indexing

Swipe to show menu

Task

Swipe to start coding

Create a data frame with a multi-level index and perform a group operation.

  • Create a data frame containing at least two columns that can serve as hierarchical index levels and one numeric column.
  • Aggregate the numeric column by both index levels using a group operation.
  • Return the resulting grouped data frame.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 18
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt