Error and strange results occurred when I imported my tweets data set to analysis sentiment by sentences

0 votes
Hi, I follow the course on YouTube titled by "Sentiment Analysis in R | Sentiment Analysis of Twitter Data | Data Science Training | Edureka", but can't solve the error after I imported my prepared tweets data set, which contains 518 tweets. The scores of every sentence are all 101, and when I limited the data set to 50 tweets, the scores are all 24.

> tweet1 <- read.csv('theInternet2009.csv')
> theInternet2009score <- score.sentiment(tweet1,pos.words,neg.words,.progress = 'text')
  |=====================================================================================================================================| 100%
Warning message:
In data.frame(score = scores, text = sentences) :
  row names were found from a short variable and have been discarded
Jun 15 in Data Analytics by YUANYUAN
21 views

1 answer to this question.

0 votes
Hey! The code should function as it as this is a warning and not an error. Probably your data.frame has different values. You can always use try() to get rid of the warning.

Also, show your data.frame so that I can figure out the exact reason behind this warning.
answered Jun 18 by Varun

Related Questions In Data Analytics

0 votes
1 answer

an error occurred" because rows do not match when trying to use lm to perform an ANOVA test

Maybe you could do something like this. ...READ MORE

answered Nov 2, 2018 in Data Analytics by Maverick
• 10,040 points
31 views
0 votes
1 answer
0 votes
1 answer

Error saying "Failed to get an access token." when trying to access my Google Analytics API

Try this: library(RGoogleAnalytics) oauth_token <- Auth( client.id = ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,040 points
77 views
0 votes
1 answer
0 votes
1 answer

Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE

answered Dec 17, 2017 in Data Analytics by Sudhir
• 1,610 points
47 views
0 votes
2 answers

Transforming a key/value string into distinct rows in R

We would start off by loading the ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,550 points
61 views
0 votes
1 answer

Finding frequency of observations in R

You can use the "dplyr" package to ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,550 points
123 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

The below is the code to perform ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,550 points
102 views
0 votes
1 answer

Error saying "duplicate 'row.names' are not allowed" when trying to setup my data for the mlogit-package

Take out the chid.var argument in your call to mlogit.data, ...READ MORE

answered Nov 12, 2018 in Data Analytics by Maverick
• 10,040 points
257 views
0 votes
1 answer