November 2017
Beginner to intermediate
366 pages
7h 59m
English
While ranking the matched articles, we want to also include the category and publisher columns.
Let's proceed to include those columns:
target.publisher <- match.refined[1,]$PUBLISHERtarget.category <- match.refined[1,]$CATEGORYtarget.polarity <- match.refined[1,]$polaritytarget.title <- match.refined[1,]$TITLE
We need the publisher, category, and the sentiment details of the document we are searching for. Fortunately, the first row of our match.refined data frame stores all the details related to 38081. We retrieve those values from there.
For the rest of the articles, we need to find out if they match the publisher and category of document 38081:
match.refined$is.publisher <- match.refined$PUBLISHER == target.publisher ...
Read now
Unlock full access