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

Recognizing factor variables

In the introductory video, you learned how to identify qualitative variables both in theory and in R. There are two ways R can represent qualitative variables: as factors or as characters. In this exercise, you'll try the two methods to find if CurrentJobTitleSelect is a factor. The dataset multiple_choice_responses has been loaded for you.

Bu egzersiz

Categorical Data in the Tidyverse

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

Egzersiz talimatları

  • Print out the dataset in the console to take a look at the column types.
  • Check if CurrentJobTitleSelect is a factor.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Print out the dataset
___ 

# Check if CurrentJobTitleSelect is a factor
___(multiple_choice_responses$CurrentJobTitleSelect)
Kodu Düzenle ve Çalıştır