1. 学习
  2. /
  3. 课程
  4. /
  5. Reshaping Data with tidyr

Connected

练习

Planet temperature & distance to the Sun

The intensity of light radiated by a light source follows an inverse square relationship with the distance it has traveled. https://en.wikipedia.org/wiki/Inverse-square_law You wonder if you could observe this trend in the temperature of the planets in our Solar System given their distance to the Sun. You'll use the planet_df dataset from the devstronomy project to investigate this.

说明 1 / 共 2 个

undefined XP
    1
    2
  • Use the pivot_wider() function to extract column names from the metric column and values from the value column.