Skip to contents

Labelling each row in a given column of tweets/text with positive, negative or neutral sentiment

Usage

sentiment_labeler(df, col)

Arguments

df

dataframe after pre-processing

col

Column name of the tweets in the dataset

Value

A dataframe contains all tweets the corresponding labels

Examples

df <- data.frame(User = c("Youri"), text = c("Hi, how are you!"))
labelled_df <- sentiment_labeler(df, "text")