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

Examining levels

Let's continue to build our understanding of CurrentJobTitleSelect. In the previous exercise, we were able to get how many levels it has, but the other important part is what those levels are. Just like the last exercise, we'll use pull to get the values of CurrentJobTitleSelect from the dataset responses_as_factors. pull can be used interchangeably with $ as a way to extract a column as a vector from a table. For example, mean(mtcars$mpg) is the same as mean(mtcars %>% pull(mpg)) or mtcars %>% pull(mpg) %>% mean().

Bu egzersiz

Categorical Data in the Tidyverse

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

Egzersiz talimatları

  • pull() the column CurrentJobTitleSelect.
  • Get the values of the levels.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

responses_as_factors %>%
    # Pull CurrentJobTitleSelect
    ___(CurrentJobTitleSelect) %>%
    # Get the values of the levels
    ___
Kodu Düzenle ve Çalıştır