R TIDYVERSE EXPEDITION
R Tidyverse Expedition: חקר נתונים
חצו את סערת אגם הנתונים! כתוב קוד dplyr כדי לתפעל ולצבור טבלאות נתונים ביעילות.
Mission Directive
בהינתן מסגרת הנתונים של 'כוכבי לכת', סנן את השורות כדי לשמור רק על כוכבי לכת שבהם הסוג הוא 'ארצי' והקוטר גדול מ-10000. לבסוף, בחר רק את עמודות השם והקוטר, ושמור את התוצאה ב'res'. השתמש באופרטור הצינור %>% כדי לשרשר פעולות.
Input Dataset (planets)
| name | type | diameter |
|---|---|---|
| Mercury | Terrestrial | 4879 |
| Venus | Terrestrial | 12104 |
| Earth | Terrestrial | 12756 |
| Mars | Terrestrial | 6792 |
| Jupiter | Gas Giant | 142984 |
| Saturn | Gas Giant | 120536 |
| Uranus | Ice Giant | 51118 |
| Neptune | Ice Giant | 49528 |
Expedition Flow Monitor
R PIPELINE EDITOR
Use dplyr and the pipe operator (%>% or |>) to transform data.
טוען עורך...