View source: R/sentiment_info.R
sentiment_info | R Documentation |
Provides common positive words and negative words extracted from comments, and tags from the website.
sentiment_info(url, y = 2018, word = "Positive")
url |
A character value indicating the URL of the professor's webpage. |
y |
A numeric value to filter ratings after a certain year. |
word |
A character value indicating the user's interest in positive words, negative words, or tags. Choices among "Positive", "Negative", and "Tags" with default as "Positive". |
A data frame with 2 columns
word - Words or tags
n - Count of words in comments or tags
url <- 'https://www.ratemyprofessors.com/ShowRatings.jsp?tid=2036448' sentiment_info(url = url, y = 2018, word = "Negative")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.