Skip to contents

Convert the sentiment scores to a likert scale from 1-5

Usage

likert_scale(df, col)

Arguments

df,

data frame containing the reviews

col,

string name of the column that contains the reviews

Value

integer between 1-5 1 = very negative 2 = negative 3 = neutral 4 = positive 5 = very positive

Examples

df =  data.frame(text = c("I love cats","I love dogs"))
val = likert_scale(df, "text")