Skip to main content
eLearner.app
R TIDYVERSE EXPEDITION

R Tidyverse Expedition: Data Exploration

Cross the data lake storm! Write dplyr code to manipulate and aggregate data tables efficiently.

Mission Directive

Given the 'planets' data frame, filter the rows to keep only planets where type is 'Terrestrial' and diameter is greater than 10000. Finally, select only the name and diameter columns, saving the result in 'res'. Use the pipe operator %>% to chain operations.

Input Dataset (planets)
nametypediameter
MercuryTerrestrial4879
VenusTerrestrial12104
EarthTerrestrial12756
MarsTerrestrial6792
JupiterGas Giant142984
SaturnGas Giant120536
UranusIce Giant51118
NeptuneIce Giant49528
Expedition Flow Monitor
filterselectINOUT

Stuck?

Learn the fundamental concepts in the R course to solve this challenge.

R PIPELINE EDITOR

Use dplyr and the pipe operator (%>% or |>) to transform data.

Loading editor…