BaşlayınÜcretsiz Başlayın

Median life expectancies

In the next exercise, you will create a cumulative time series of the median housing price index in each region. In order to do this, you must first calculate the median housing price index in each year for each region.

Use the dplyr package to complete this task.

Bu egzersiz

Intermediate Interactive Data Visualization with plotly in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Find the median housing price index (house_price) for each region within each year using group_by() and summarize().
  • Name the new variable median_hpi.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# dplyr has already been loaded

# Find median life HPI for each region in each year
us_economy %>%
  ___(___, ___) %>%
  ___(___ = ___(___))
Kodu Düzenle ve Çalıştır