twitter - import files containing the positive and negative words into R -


i trying sentiment analysis on tweets ( have dataset tweets, no api scraping) in order see if tweet negative or positive. downloaded list of negative , positive words. saved textfile in working directory exact same name in code below. however, code gives error:

positive_words <- readlines("positive_words.txt")  

error in file(con, "r") : cannot open connection in addition: warning message: in file(con, "r") : cannot open file 'positive_words.txt': no such file or directory

how can import these textfiles r?

thank you!!


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -