Exercise

Working with Google reviews

Now that the Amazon reviews have been cleaned, the same must be done for the Google reviews. qdap_clean() and tm_clean() are available in your workspace to help you clean goog_pros and goog_cons.

Instructions 1/2

undefined XP
  • 1
    • Apply qdap_clean() to goog_pros, assigning to qdap_cleaned_goog_pros.
    • Create a vector source (VectorSource()) from qdap_cleaned_goog_pros, then turn it into a volatile corpus (VCorpus()), assigning to goog_p_corp.
    • Create goog_pros_corp by applying tm_clean() to goog_p_corp.
  • 2
    • Apply qdap_clean() to goog_cons, assigning to qdap_cleaned_goog_cons.
    • Create a vector source from qdap_cleaned_goog_cons, then turn it into a volatile corpus, assigning to goog_c_corp.
    • Create goog_cons_corp by applying tm_clean() to goog_c_corp.