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, 2019 in Data Analytics by YUANYUAN
736 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, 2019 by Varun

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer

how can i access my profile and assignment for pubg analysis data science webinar?

Hey, @There,  Every user who registers for the ...READ MORE

answered Dec 15, 2020 in Data Analytics by Gitika
• 65,770 points
860 views
+1 vote
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,840 points
1,038 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 18, 2017 in Data Analytics by Sudhir
• 1,570 points
1,047 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,660 points
1,224 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,660 points
5,909 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

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

answered Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
1,157 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,840 points
2,082 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP