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

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -