Learn R Programming

saotd (version 0.2.0)

tweet_scores: Score Tidy Twitter Data

Description

Function to Calculate Sentiment Scores that will account for sentiment by hashtag or topic.

Usage

tweet_scores(DataFrameTidy, HT_Topic)

Arguments

DataFrameTidy

DataFrame of Twitter Data that has been tidy'd.

HT_Topic

If using hashtag data select: "hashtag". If using topic data select: "topic"

Value

A Scored DataFrame.

Examples

Run this code
# NOT RUN {
library(saotd)
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
score_data <- tweet_scores(DataFrameTidy = tidy_data, 
                           HT_Topic = "hashtag")
score_data
# }

Run the code above in your browser using DataLab