kwartler / text_mining

This repo contains data from Ted Kwartler's "Text Mining in Practice With R" book.
53 stars 67 forks source link

Full Code not appearing in section 6.2.3, pg 196 | Corrected #9

Closed shawnbrar0804 closed 6 years ago

shawnbrar0804 commented 6 years ago

In section 6.2.3, page 196 the last line of the code is not readable as shown in the following image(yellow highlighted section):-

code

For those of who are suffering from this the full code is as follows

clean.test <- headline.clean(test.headlines$headline)
test.dtm <- match.matrix(clean.test, weighting = tm::weightTfIdf, original.matrix = train.dtm)
kwartler commented 6 years ago

Thats weird...thank you for updating the github repo. I appreciate it.