Session Ready
Exercise

Making a dtm - refresher

You are given a table corpus: column text contains the documents, column id - the document ids. Your task is to make a document-term matrix. You've done this before, so it should be easy.

Instructions
100 XP
  • Put text as the input argument in unnest_tokens.
  • Put id and word as the arguments in count.
  • Put id as the document argument and word as the term argument in the call to cast_dtm.