sentiment_info: Sentiment Info Extractor

View source: R/sentiment_info.R

sentiment_infoR Documentation

Sentiment Info Extractor

Description

Provides common positive words and negative words extracted from comments, and tags from the website.

Usage

sentiment_info(url, y = 2018, word = "Positive")

Arguments

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".

Value

A data frame with 2 columns

  • word - Words or tags

  • n - Count of words in comments or tags

Examples

url <- 'https://www.ratemyprofessors.com/ShowRatings.jsp?tid=2036448'
sentiment_info(url = url, y = 2018, word = "Negative")

m-fili/ProfRate documentation built on May 22, 2022, 8:33 p.m.