跳转到主要内容
eLearner.app
R TIDYVERSE EXPEDITION

R Tidyverse Expedition:数据探索

跨越数据湖风暴!编写 dplyr 代码以有效地操作和聚合数据表。

Mission Directive

给定“行星”数据框,过滤行以仅保留类型为“类地”且直径大于 10000 的行星。最后,仅选择名称和直径列,将结果保存在“res”中。使用管道运算符 %>% 来链接操作。

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.

正在加载编辑器...