library(tm)
## Loading required package: NLP
library(wordcloud)
## Loading required package: RColorBrewer
txt2='/home/ajay/Desktop/new'
b=Corpus(DirSource(txt2), readerControl = list(language = 'eng'))
inspect(b)
## <<VCorpus>>
## Metadata: corpus specific: 0, document level (indexed): 0
## Content: documents: 1
##
## [[1]]
## <<PlainTextDocument>>
## Metadata: 7
## Content: chars: 6836
#clean
b = tm_map(b, stripWhitespace)
inspect(b)
## <<VCorpus>>
## Metadata: corpus specific: 0, document level (indexed): 0
## Content: documents: 1
##
## [[1]]
## <<PlainTextDocument>>
## Metadata: 7
## Content: chars: 6836
b <- tm_map(b, tolower)
inspect(b)
## <<VCorpus>>
## Metadata: corpus specific: 0, document level (indexed): 0
## Content: documents: 1
##
## [[1]]
## [1] thank you, new hampshire. i love you back. thank you. thank you.
## [2]
## [3] well, thank you so much. i am still fired up and ready to go. (applause)
## [4]
## [5] thank you. thank you.
## [6]
## [7] well, first of all, i want to congratulate senator clinton on a hard-fought victory here in new hampshire. she did an outstanding job. give her a big round of applause.
## [8]
## [9] (applause)
## [10]
## [11] you know, a few weeks ago, no one imagined that we'd have accomplished what we did here tonight in new hampshire. no one could have imagined it.
## [12]
## [13] for most of this campaign, we were far behind. we always knew our climb would be steep. but in record numbers, you came out, and you spoke up for change.
## [14]
## [15] and with your voices and your votes, you made it clear that at this moment, in this election, there is something happening in america.
## [16]
## [17] (applause)
## [18]
## [19] there is something happening when men and women in des moines and davenport, in lebanon and concord, come out in the snows of january to wait in lines that stretch block after block because they believe in what this country can be.
## [20]
## [21] there is something happening. there's something happening when americans who are young in age and in spirit, who've never participated in politics before, turn out in numbers we have never seen because they know in their hearts that this time must be different.
## [22]
## [23] there's something happening when people vote not just for party that they belong to, but the hopes that they hold in common.
## [24]
## [25] and whether we are rich or poor, black or white, latino or asian, whether we hail from iowa or new hampshire, nevada or south carolina, we are ready to take this country in a fundamentally new direction.
## [26]
## [27] that's what's happening in america right now; change is what's happening in america.
## [28]
## [29] you, all of you who are here tonight, all who put so much heart and soul and work into this campaign, you can be the new majority who can lead this nation out of a long political darkness.
## [30]
## [31] democrats, independents and republicans who are tired of the division and distraction that has clouded washington, who know that we can disagree without being disagreeable, who understand that, if we mobilize our voices to challenge the money and influence that stood in our way and challenge ourselves to reach for something better, there is no problem we cannot solve, there is no destiny that we cannot fulfill. our new american majority can end the outrage of unaffordable, unavailable health care in our time. we can bring doctors and patients, workers and businesses, democrats and republicans together, and we can tell the drug and insurance industry that, while they get a seat at the table, they don't get to buy every chair, not this time, not now.
## [32]
## [33] (applause)
## [34]
## [35] our new majority can end the tax breaks for corporations that ship our jobs overseas and put a middle-class tax cut in the pockets of working americans who deserve it.
## [36]
## [37] we can stop sending our children to schools with corridors of shame and start putting them on a pathway to success.
## [38]
## [39] we can stop talking about how great teachers are and start rewarding them for their greatness by giving them more pay and more support. we can do this with our new majority.
## [40]
## [41] we can harness the ingenuity of farmers and scientists, citizens and entrepreneurs to free this nation from the tyranny of oil and save our planet from a point of no return.
## [42]
## [43] and when i am president of the united states, we will end this war in iraq and bring our troops home.
## [44]
## [45] (applause)
## [46]
## [47] we will end this war in iraq. we will bring our troops home. we will finish the job -- we will finish the job against al qaida in afghanistan. we will care for our veterans. we will restore our moral standing in the world.
## [48]
## [49] and we will never use 9/11 as a way to scare up votes, because it is not a tactic to win an election. it is a challenge that should unite america and the world against the common threats of the 21st century: terrorism and nuclear weapons, climate change and poverty, genocide and disease.
## [50]
## [51] all of the candidates in this race share these goals. all of the candidates in this race have good ideas and all are patriots who serve this country honorably.
## [52]
## [53] (applause)
## [54]
## [55] but the reason our campaign has always been different, the reason we began this improbable journey almost a year ago is because it's not just about what i will do as president. it is also about what you, the people who love this country, the citizens of the united states of america, can do to change it.
## [56]
## [57] that's what this election is all about.
## [58]
## [59] that's why tonight belongs to you. it belongs to the organizers, and the volunteers, and the staff who believed in this journey and rallied so many others to join the cause.
## [60]
## [61] we know the battle ahead will be long. but always remember that, no matter what obstacles stand in our way, nothing can stand in the way of the power of millions of voices calling for change.
## [62]
## [63] we have been told we cannot do this by a chorus of cynics. and they will only grow louder and more dissonant in the weeks and months to come.
## [64]
## [65] we've been asked to pause for a reality check. we've been warned against offering the people of this nation false hope. but in the unlikely story that is america, there has never been anything false about hope.
## [66]
## [67] (applause)
## [68]
## [69] for when we have faced down impossible odds, when we've been told we're not ready or that we shouldn't try or that we can't, generations of americans have responded with a simple creed that sums up the spirit of a people: yes, we can. yes, we can. yes, we can.
## [70]
## [71] it was a creed written into the founding documents that declared the destiny of a nation: yes, we can.
## [72]
## [73] it was whispered by slaves and abolitionists as they blazed a trail towards freedom through the darkest of nights: yes, we can.
## [74]
## [75] it was sung by immigrants as they struck out from distant shores and pioneers who pushed westward against an unforgiving wilderness: yes, we can.
## [76]
## [77] it was the call of workers who organized, women who reached for the ballot, a president who chose the moon as our new frontier, and a king who took us to the mountaintop and pointed the way to the promised land: yes, we can, to justice and equality.
## [78]
## [79] yes, we can, to opportunity and prosperity. yes, we can heal this nation. yes, we can repair this world. yes, we can.
## [80]
## [81] and so, tomorrow, as we take the campaign south and west, as we learn that the struggles of the textile workers in spartanburg are not so different than the plight of the dishwasher in las vegas, that the hopes of the little girl who goes to the crumbling school in dillon are the same as the dreams of the boy who learns on the streets of l.a., we will remember that there is something happening in america, that we are not as divided as our politics suggest, that we are one people, we are one nation.
## [82]
## [83] and, together, we will begin the next great chapter in the american story, with three words that will ring from coast to coast, from sea to shining sea: yes, we can.
## [84]
## [85] thank you, new hampshire. thank you. thank you.
# remove punctuation
b <- tm_map(b,removePunctuation)
inspect(b)
## <<VCorpus>>
## Metadata: corpus specific: 0, document level (indexed): 0
## Content: documents: 1
##
## [[1]]
## [1] thank you new hampshire i love you back thank you thank you
## [2]
## [3] well thank you so much i am still fired up and ready to go applause
## [4]
## [5] thank you thank you
## [6]
## [7] well first of all i want to congratulate senator clinton on a hardfought victory here in new hampshire she did an outstanding job give her a big round of applause
## [8]
## [9] applause
## [10]
## [11] you know a few weeks ago no one imagined that wed have accomplished what we did here tonight in new hampshire no one could have imagined it
## [12]
## [13] for most of this campaign we were far behind we always knew our climb would be steep but in record numbers you came out and you spoke up for change
## [14]
## [15] and with your voices and your votes you made it clear that at this moment in this election there is something happening in america
## [16]
## [17] applause
## [18]
## [19] there is something happening when men and women in des moines and davenport in lebanon and concord come out in the snows of january to wait in lines that stretch block after block because they believe in what this country can be
## [20]
## [21] there is something happening theres something happening when americans who are young in age and in spirit whove never participated in politics before turn out in numbers we have never seen because they know in their hearts that this time must be different
## [22]
## [23] theres something happening when people vote not just for party that they belong to but the hopes that they hold in common
## [24]
## [25] and whether we are rich or poor black or white latino or asian whether we hail from iowa or new hampshire nevada or south carolina we are ready to take this country in a fundamentally new direction
## [26]
## [27] thats whats happening in america right now change is whats happening in america
## [28]
## [29] you all of you who are here tonight all who put so much heart and soul and work into this campaign you can be the new majority who can lead this nation out of a long political darkness
## [30]
## [31] democrats independents and republicans who are tired of the division and distraction that has clouded washington who know that we can disagree without being disagreeable who understand that if we mobilize our voices to challenge the money and influence that stood in our way and challenge ourselves to reach for something better there is no problem we cannot solve there is no destiny that we cannot fulfill our new american majority can end the outrage of unaffordable unavailable health care in our time we can bring doctors and patients workers and businesses democrats and republicans together and we can tell the drug and insurance industry that while they get a seat at the table they dont get to buy every chair not this time not now
## [32]
## [33] applause
## [34]
## [35] our new majority can end the tax breaks for corporations that ship our jobs overseas and put a middleclass tax cut in the pockets of working americans who deserve it
## [36]
## [37] we can stop sending our children to schools with corridors of shame and start putting them on a pathway to success
## [38]
## [39] we can stop talking about how great teachers are and start rewarding them for their greatness by giving them more pay and more support we can do this with our new majority
## [40]
## [41] we can harness the ingenuity of farmers and scientists citizens and entrepreneurs to free this nation from the tyranny of oil and save our planet from a point of no return
## [42]
## [43] and when i am president of the united states we will end this war in iraq and bring our troops home
## [44]
## [45] applause
## [46]
## [47] we will end this war in iraq we will bring our troops home we will finish the job we will finish the job against al qaida in afghanistan we will care for our veterans we will restore our moral standing in the world
## [48]
## [49] and we will never use 911 as a way to scare up votes because it is not a tactic to win an election it is a challenge that should unite america and the world against the common threats of the 21st century terrorism and nuclear weapons climate change and poverty genocide and disease
## [50]
## [51] all of the candidates in this race share these goals all of the candidates in this race have good ideas and all are patriots who serve this country honorably
## [52]
## [53] applause
## [54]
## [55] but the reason our campaign has always been different the reason we began this improbable journey almost a year ago is because its not just about what i will do as president it is also about what you the people who love this country the citizens of the united states of america can do to change it
## [56]
## [57] thats what this election is all about
## [58]
## [59] thats why tonight belongs to you it belongs to the organizers and the volunteers and the staff who believed in this journey and rallied so many others to join the cause
## [60]
## [61] we know the battle ahead will be long but always remember that no matter what obstacles stand in our way nothing can stand in the way of the power of millions of voices calling for change
## [62]
## [63] we have been told we cannot do this by a chorus of cynics and they will only grow louder and more dissonant in the weeks and months to come
## [64]
## [65] weve been asked to pause for a reality check weve been warned against offering the people of this nation false hope but in the unlikely story that is america there has never been anything false about hope
## [66]
## [67] applause
## [68]
## [69] for when we have faced down impossible odds when weve been told were not ready or that we shouldnt try or that we cant generations of americans have responded with a simple creed that sums up the spirit of a people yes we can yes we can yes we can
## [70]
## [71] it was a creed written into the founding documents that declared the destiny of a nation yes we can
## [72]
## [73] it was whispered by slaves and abolitionists as they blazed a trail towards freedom through the darkest of nights yes we can
## [74]
## [75] it was sung by immigrants as they struck out from distant shores and pioneers who pushed westward against an unforgiving wilderness yes we can
## [76]
## [77] it was the call of workers who organized women who reached for the ballot a president who chose the moon as our new frontier and a king who took us to the mountaintop and pointed the way to the promised land yes we can to justice and equality
## [78]
## [79] yes we can to opportunity and prosperity yes we can heal this nation yes we can repair this world yes we can
## [80]
## [81] and so tomorrow as we take the campaign south and west as we learn that the struggles of the textile workers in spartanburg are not so different than the plight of the dishwasher in las vegas that the hopes of the little girl who goes to the crumbling school in dillon are the same as the dreams of the boy who learns on the streets of la we will remember that there is something happening in america that we are not as divided as our politics suggest that we are one people we are one nation
## [82]
## [83] and together we will begin the next great chapter in the american story with three words that will ring from coast to coast from sea to shining sea yes we can
## [84]
## [85] thank you new hampshire thank you thank you
# remove numbers
b<- tm_map(b, removeWords, stopwords("english"))
inspect(b)
## <<VCorpus>>
## Metadata: corpus specific: 0, document level (indexed): 0
## Content: documents: 1
##
## [[1]]
## [1] thank new hampshire love back thank thank
## [2]
## [3] well thank much still fired ready go applause
## [4]
## [5] thank thank
## [6]
## [7] well first want congratulate senator clinton hardfought victory new hampshire outstanding job give big round applause
## [8]
## [9] applause
## [10]
## [11] know weeks ago one imagined wed accomplished tonight new hampshire one imagined
## [12]
## [13] campaign far behind always knew climb steep record numbers came spoke change
## [14]
## [15] voices votes made clear moment election something happening america
## [16]
## [17] applause
## [18]
## [19] something happening men women des moines davenport lebanon concord come snows january wait lines stretch block block believe country can
## [20]
## [21] something happening theres something happening americans young age spirit whove never participated politics turn numbers never seen know hearts time must different
## [22]
## [23] theres something happening people vote just party belong hopes hold common
## [24]
## [25] whether rich poor black white latino asian whether hail iowa new hampshire nevada south carolina ready take country fundamentally new direction
## [26]
## [27] thats whats happening america right now change whats happening america
## [28]
## [29] tonight put much heart soul work campaign can new majority can lead nation long political darkness
## [30]
## [31] democrats independents republicans tired division distraction clouded washington know can disagree without disagreeable understand mobilize voices challenge money influence stood way challenge reach something better problem solve destiny fulfill new american majority can end outrage unaffordable unavailable health care time can bring doctors patients workers businesses democrats republicans together can tell drug insurance industry get seat table dont get buy every chair time now
## [32]
## [33] applause
## [34]
## [35] new majority can end tax breaks corporations ship jobs overseas put middleclass tax cut pockets working americans deserve
## [36]
## [37] can stop sending children schools corridors shame start putting pathway success
## [38]
## [39] can stop talking great teachers start rewarding greatness giving pay support can new majority
## [40]
## [41] can harness ingenuity farmers scientists citizens entrepreneurs free nation tyranny oil save planet point return
## [42]
## [43] president united states will end war iraq bring troops home
## [44]
## [45] applause
## [46]
## [47] will end war iraq will bring troops home will finish job will finish job al qaida afghanistan will care veterans will restore moral standing world
## [48]
## [49] will never use 911 way scare votes tactic win election challenge unite america world common threats 21st century terrorism nuclear weapons climate change poverty genocide disease
## [50]
## [51] candidates race share goals candidates race good ideas patriots serve country honorably
## [52]
## [53] applause
## [54]
## [55] reason campaign always different reason began improbable journey almost year ago just will president also people love country citizens united states america can change
## [56]
## [57] thats election
## [58]
## [59] thats tonight belongs belongs organizers volunteers staff believed journey rallied many others join cause
## [60]
## [61] know battle ahead will long always remember matter obstacles stand way nothing can stand way power millions voices calling change
## [62]
## [63] told chorus cynics will grow louder dissonant weeks months come
## [64]
## [65] weve asked pause reality check weve warned offering people nation false hope unlikely story america never anything false hope
## [66]
## [67] applause
## [68]
## [69] faced impossible odds weve told ready shouldnt try cant generations americans responded simple creed sums spirit people yes can yes can yes can
## [70]
## [71] creed written founding documents declared destiny nation yes can
## [72]
## [73] whispered slaves abolitionists blazed trail towards freedom darkest nights yes can
## [74]
## [75] sung immigrants struck distant shores pioneers pushed westward unforgiving wilderness yes can
## [76]
## [77] call workers organized women reached ballot president chose moon new frontier king took us mountaintop pointed way promised land yes can justice equality
## [78]
## [79] yes can opportunity prosperity yes can heal nation yes can repair world yes can
## [80]
## [81] tomorrow take campaign south west learn struggles textile workers spartanburg different plight dishwasher las vegas hopes little girl goes crumbling school dillon dreams boy learns streets la will remember something happening america divided politics suggest one people one nation
## [82]
## [83] together will begin next great chapter american story three words will ring coast coast sea shining sea yes can
## [84]
## [85] thank new hampshire thank thank
#Plain Text Document
b <- tm_map(b, PlainTextDocument)
inspect(b)
## <<VCorpus>>
## Metadata: corpus specific: 0, document level (indexed): 0
## Content: documents: 1
##
## [[1]]
## <<PlainTextDocument>>
## Metadata: 7
## Content: chars: 4802
c=DocumentTermMatrix(b)
inspect(c[,1:10])
## <<DocumentTermMatrix (documents: 1, terms: 10)>>
## Non-/sparse entries: 10/0
## Sparsity : 0%
## Maximal term length: 13
## Weighting : term frequency (tf)
##
## Terms
## Docs 21st 911 abolitionists accomplished afghanistan age ago
## character(0) 1 1 1 1 1 1 2
## Terms
## Docs ahead almost also
## character(0) 1 1 1
c2=TermDocumentMatrix(b)
inspect(c2[1:100,])
## <<TermDocumentMatrix (terms: 100, documents: 1)>>
## Non-/sparse entries: 100/0
## Sparsity : 0%
## Maximal term length: 13
## Weighting : term frequency (tf)
##
## Docs
## Terms character(0)
## 21st 1
## 911 1
## abolitionists 1
## accomplished 1
## afghanistan 1
## age 1
## ago 2
## ahead 1
## almost 1
## also 1
## always 3
## america 7
## american 2
## americans 3
## anything 1
## applause 8
## asian 1
## asked 1
## back 1
## ballot 1
## battle 1
## began 1
## begin 1
## behind 1
## believe 1
## believed 1
## belong 1
## belongs 2
## better 1
## big 1
## black 1
## blazed 1
## block 2
## boy 1
## breaks 1
## bring 3
## businesses 1
## buy 1
## call 1
## calling 1
## came 1
## campaign 4
## can 26
## candidates 2
## cant 1
## care 2
## carolina 1
## cause 1
## century 1
## chair 1
## challenge 3
## change 5
## chapter 1
## check 1
## children 1
## chorus 1
## chose 1
## citizens 2
## clear 1
## climate 1
## climb 1
## clinton 1
## clouded 1
## coast 2
## come 2
## common 2
## concord 1
## congratulate 1
## corporations 1
## corridors 1
## country 4
## creed 2
## crumbling 1
## cut 1
## cynics 1
## darkest 1
## darkness 1
## davenport 1
## declared 1
## democrats 2
## des 1
## deserve 1
## destiny 2
## different 3
## dillon 1
## direction 1
## disagree 1
## disagreeable 1
## disease 1
## dishwasher 1
## dissonant 1
## distant 1
## distraction 1
## divided 1
## division 1
## doctors 1
## documents 1
## dont 1
## dreams 1
## drug 1
dim(c2)
## [1] 383 1
findFreqTerms(c,5)
## [1] "america" "applause" "can" "change" "hampshire"
## [6] "happening" "nation" "new" "people" "something"
## [11] "thank" "way" "will" "yes"
c3=as.data.frame(as.matrix(c2))
c3$Terms=row.names(c3)
names(c3)=c("freqs","terms")
c4=c3[order(c3$freqs),]
c4
## freqs terms
## 21st 1 21st
## 911 1 911
## abolitionists 1 abolitionists
## accomplished 1 accomplished
## afghanistan 1 afghanistan
## age 1 age
## ahead 1 ahead
## almost 1 almost
## also 1 also
## anything 1 anything
## asian 1 asian
## asked 1 asked
## back 1 back
## ballot 1 ballot
## battle 1 battle
## began 1 began
## begin 1 begin
## behind 1 behind
## believe 1 believe
## believed 1 believed
## belong 1 belong
## better 1 better
## big 1 big
## black 1 black
## blazed 1 blazed
## boy 1 boy
## breaks 1 breaks
## businesses 1 businesses
## buy 1 buy
## call 1 call
## calling 1 calling
## came 1 came
## cant 1 cant
## carolina 1 carolina
## cause 1 cause
## century 1 century
## chair 1 chair
## chapter 1 chapter
## check 1 check
## children 1 children
## chorus 1 chorus
## chose 1 chose
## clear 1 clear
## climate 1 climate
## climb 1 climb
## clinton 1 clinton
## clouded 1 clouded
## concord 1 concord
## congratulate 1 congratulate
## corporations 1 corporations
## corridors 1 corridors
## crumbling 1 crumbling
## cut 1 cut
## cynics 1 cynics
## darkest 1 darkest
## darkness 1 darkness
## davenport 1 davenport
## declared 1 declared
## des 1 des
## deserve 1 deserve
## dillon 1 dillon
## direction 1 direction
## disagree 1 disagree
## disagreeable 1 disagreeable
## disease 1 disease
## dishwasher 1 dishwasher
## dissonant 1 dissonant
## distant 1 distant
## distraction 1 distraction
## divided 1 divided
## division 1 division
## doctors 1 doctors
## documents 1 documents
## dont 1 dont
## dreams 1 dreams
## drug 1 drug
## entrepreneurs 1 entrepreneurs
## equality 1 equality
## every 1 every
## faced 1 faced
## far 1 far
## farmers 1 farmers
## fired 1 fired
## first 1 first
## founding 1 founding
## free 1 free
## freedom 1 freedom
## frontier 1 frontier
## fulfill 1 fulfill
## fundamentally 1 fundamentally
## generations 1 generations
## genocide 1 genocide
## girl 1 girl
## give 1 give
## giving 1 giving
## goals 1 goals
## goes 1 goes
## good 1 good
## greatness 1 greatness
## grow 1 grow
## hail 1 hail
## hardfought 1 hardfought
## harness 1 harness
## heal 1 heal
## health 1 health
## heart 1 heart
## hearts 1 hearts
## hold 1 hold
## honorably 1 honorably
## ideas 1 ideas
## immigrants 1 immigrants
## impossible 1 impossible
## improbable 1 improbable
## independents 1 independents
## industry 1 industry
## influence 1 influence
## ingenuity 1 ingenuity
## insurance 1 insurance
## iowa 1 iowa
## january 1 january
## jobs 1 jobs
## join 1 join
## justice 1 justice
## king 1 king
## knew 1 knew
## land 1 land
## las 1 las
## latino 1 latino
## lead 1 lead
## learn 1 learn
## learns 1 learns
## lebanon 1 lebanon
## lines 1 lines
## little 1 little
## louder 1 louder
## made 1 made
## many 1 many
## matter 1 matter
## men 1 men
## middleclass 1 middleclass
## millions 1 millions
## mobilize 1 mobilize
## moines 1 moines
## moment 1 moment
## money 1 money
## months 1 months
## moon 1 moon
## moral 1 moral
## mountaintop 1 mountaintop
## must 1 must
## nevada 1 nevada
## next 1 next
## nights 1 nights
## nothing 1 nothing
## nuclear 1 nuclear
## obstacles 1 obstacles
## odds 1 odds
## offering 1 offering
## oil 1 oil
## opportunity 1 opportunity
## organized 1 organized
## organizers 1 organizers
## others 1 others
## outrage 1 outrage
## outstanding 1 outstanding
## overseas 1 overseas
## participated 1 participated
## party 1 party
## pathway 1 pathway
## patients 1 patients
## patriots 1 patriots
## pause 1 pause
## pay 1 pay
## pioneers 1 pioneers
## planet 1 planet
## plight 1 plight
## pockets 1 pockets
## point 1 point
## pointed 1 pointed
## political 1 political
## poor 1 poor
## poverty 1 poverty
## power 1 power
## problem 1 problem
## promised 1 promised
## prosperity 1 prosperity
## pushed 1 pushed
## putting 1 putting
## qaida 1 qaida
## rallied 1 rallied
## reach 1 reach
## reached 1 reached
## reality 1 reality
## record 1 record
## repair 1 repair
## responded 1 responded
## restore 1 restore
## return 1 return
## rewarding 1 rewarding
## rich 1 rich
## right 1 right
## ring 1 ring
## round 1 round
## save 1 save
## scare 1 scare
## school 1 school
## schools 1 schools
## scientists 1 scientists
## seat 1 seat
## seen 1 seen
## senator 1 senator
## sending 1 sending
## serve 1 serve
## shame 1 shame
## share 1 share
## shining 1 shining
## ship 1 ship
## shores 1 shores
## shouldnt 1 shouldnt
## simple 1 simple
## slaves 1 slaves
## snows 1 snows
## solve 1 solve
## soul 1 soul
## spartanburg 1 spartanburg
## spoke 1 spoke
## staff 1 staff
## standing 1 standing
## steep 1 steep
## still 1 still
## stood 1 stood
## streets 1 streets
## stretch 1 stretch
## struck 1 struck
## struggles 1 struggles
## success 1 success
## suggest 1 suggest
## sums 1 sums
## sung 1 sung
## support 1 support
## table 1 table
## tactic 1 tactic
## talking 1 talking
## teachers 1 teachers
## tell 1 tell
## terrorism 1 terrorism
## textile 1 textile
## threats 1 threats
## three 1 three
## tired 1 tired
## tomorrow 1 tomorrow
## took 1 took
## towards 1 towards
## trail 1 trail
## try 1 try
## turn 1 turn
## tyranny 1 tyranny
## unaffordable 1 unaffordable
## unavailable 1 unavailable
## understand 1 understand
## unforgiving 1 unforgiving
## unite 1 unite
## unlikely 1 unlikely
## use 1 use
## vegas 1 vegas
## veterans 1 veterans
## victory 1 victory
## volunteers 1 volunteers
## vote 1 vote
## wait 1 wait
## want 1 want
## warned 1 warned
## washington 1 washington
## weapons 1 weapons
## wed 1 wed
## west 1 west
## westward 1 westward
## whispered 1 whispered
## white 1 white
## whove 1 whove
## wilderness 1 wilderness
## win 1 win
## without 1 without
## words 1 words
## work 1 work
## working 1 working
## written 1 written
## year 1 year
## young 1 young
## ago 2 ago
## american 2 american
## belongs 2 belongs
## block 2 block
## candidates 2 candidates
## care 2 care
## citizens 2 citizens
## coast 2 coast
## come 2 come
## common 2 common
## creed 2 creed
## democrats 2 democrats
## destiny 2 destiny
## false 2 false
## finish 2 finish
## get 2 get
## great 2 great
## home 2 home
## hope 2 hope
## hopes 2 hopes
## imagined 2 imagined
## iraq 2 iraq
## journey 2 journey
## just 2 just
## long 2 long
## love 2 love
## much 2 much
## now 2 now
## numbers 2 numbers
## politics 2 politics
## put 2 put
## race 2 race
## reason 2 reason
## remember 2 remember
## republicans 2 republicans
## sea 2 sea
## south 2 south
## spirit 2 spirit
## stand 2 stand
## start 2 start
## states 2 states
## stop 2 stop
## story 2 story
## take 2 take
## tax 2 tax
## theres 2 theres
## together 2 together
## told 2 told
## troops 2 troops
## united 2 united
## votes 2 votes
## war 2 war
## weeks 2 weeks
## well 2 well
## whats 2 whats
## whether 2 whether
## women 2 women
## always 3 always
## americans 3 americans
## bring 3 bring
## challenge 3 challenge
## different 3 different
## election 3 election
## job 3 job
## president 3 president
## ready 3 ready
## thats 3 thats
## time 3 time
## tonight 3 tonight
## voices 3 voices
## weve 3 weve
## workers 3 workers
## world 3 world
## campaign 4 campaign
## country 4 country
## end 4 end
## know 4 know
## majority 4 majority
## never 4 never
## one 4 one
## change 5 change
## hampshire 5 hampshire
## people 5 people
## way 5 way
## nation 6 nation
## america 7 america
## something 7 something
## applause 8 applause
## happening 8 happening
## thank 9 thank
## new 11 new
## yes 12 yes
## will 14 will
## can 26 can
#findAssocs(c, "can", 0.0001)
# http://www.rdatamining.com/examples/text-mining