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

Step 2: Identifying the text sources

Employee reviews can come from various sources. If your human resources department had the resources, you could have a third party administer focus groups to interview employees both internally and from your competitor.

Forbes and others publish articles about the "best places to work", which may mention Amazon and Google. Another source of information might be anonymous online reviews from websites like Indeed, Glassdoor or CareerBliss.

Here, we'll focus on a collection of anonymous online reviews.

Bu egzersiz

Text Mining with Bag-of-Words in R

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

Egzersiz talimatları

  • View the structure of amzn with str() to get its dimensions and a preview of the data.
  • Create amzn_pros from the positive reviews column amzn$pros.
  • Create amzn_cons from the negative reviews column amzn$cons.
  • Print the structure of goog with str() to get its dimensions and a preview of the data.
  • Create goog_pros from the positive reviews column goog$pros.
  • Create goog_cons from the negative reviews column goog$cons.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Print the structure of amzn
___

# Create amzn_pros
___ <- ___

# Create amzn_cons
___ <- ___

# Print the structure of goog
___(___)

# Create goog_pros
___ <- ___

# Create goog_cons
___ <- ___
Kodu Düzenle ve Çalıştır