## Package version: 2.1.2
## Parallel computing: 2 of 2 threads used.
## See https://quanteda.io for tutorials and examples.
##
## Attaching package: 'quanteda'
## The following object is masked from 'package:utils':
##
## View
## Loading required package: usethis
##
## Attaching package: 'quanteda.textmodels'
## The following object is masked from 'package:quanteda':
##
## data_dfm_lbgexample
##
## Attaching package: 'seededlda'
## The following object is masked from 'package:stats':
##
## terms
##
## Attaching package: 'rsconnect'
## The following object is masked from 'package:devtools':
##
## lint
##
## Attaching package: 'packrat'
## The following objects are masked from 'package:devtools':
##
## install, install_local
R Markdown
#create corpus
## readtext object consisting of 18 documents and 1 docvar.
## # Description: df[,3] [18 × 3]
## doc_id text docvar1
## <chr> <chr> <chr>
## 1 Moheli1.pdf "\" World'\"..." Moheli1
## 2 Moheli10.pdf "\" \"..." Moheli10
## 3 Moheli11.pdf "\" \"..." Moheli11
## 4 Moheli12.pdf "\" A\"..." Moheli12
## 5 Moheli13.pdf "\" \"..." Moheli13
## 6 Moheli14.pdf "\" \"..." Moheli14
## # … with 12 more rows
#create corpus
## [1] 18
## docvar1
## 1 Moheli1
## 2 Moheli10
## 3 Moheli11
## 4 Moheli12
## 5 Moheli13
## 6 Moheli14
## Corpus consisting of 18 documents, showing 18 documents:
##
## Text Types Tokens Sentences docvar1
## Moheli1.pdf 512 1042 43 Moheli1
## Moheli10.pdf 646 1633 76 Moheli10
## Moheli11.pdf 224 447 16 Moheli11
## Moheli12.pdf 385 803 23 Moheli12
## Moheli13.pdf 253 515 17 Moheli13
## Moheli14.pdf 243 485 16 Moheli14
## Moheli15.pdf 169 267 6 Moheli15
## Moheli16.pdf 362 745 30 Moheli16
## Moheli17.pdf 258 523 18 Moheli17
## Moheli18.pdf 258 458 15 Moheli18
## Moheli2.pdf 269 536 19 Moheli2
## Moheli3.pdf 272 539 19 Moheli3
## Moheli4.pdf 222 448 17 Moheli4
## Moheli5.pdf 315 737 22 Moheli5
## Moheli6.pdf 291 631 21 Moheli6
## Moheli7.pdf 715 1999 64 Moheli7
## Moheli8.pdf 263 535 19 Moheli8
## Moheli9.pdf 314 780 13 Moheli9
#create dfm
## Length Class Mode
## 30510 dfm S4
#Cleaning up using tokens
## Length Class Mode
## Moheli1.pdf 539 -none- character
## Moheli10.pdf 820 -none- character
## Moheli11.pdf 245 -none- character
## Moheli12.pdf 386 -none- character
## Moheli13.pdf 265 -none- character
## Moheli14.pdf 249 -none- character
## Moheli15.pdf 134 -none- character
## Moheli16.pdf 353 -none- character
## Moheli17.pdf 244 -none- character
## Moheli18.pdf 219 -none- character
## Moheli2.pdf 269 -none- character
## Moheli3.pdf 285 -none- character
## Moheli4.pdf 218 -none- character
## Moheli5.pdf 360 -none- character
## Moheli6.pdf 350 -none- character
## Moheli7.pdf 1040 -none- character
## Moheli8.pdf 272 -none- character
## Moheli9.pdf 382 -none- character
#kwic doesn’t work with dfm, so you have to use tokens
| Moheli1.pdf |
21 |
21 |
media group limit |
right |
reserv section news |
right |
| Moheli1.pdf |
54 |
54 |
crisi bolster nationalist |
right |
archipelago indian ocean |
right |
| Moheli11.pdf |
14 |
14 |
sunday associat press |
right |
reserv section internat |
right |
| Moheli13.pdf |
19 |
19 |
intellig unit ltd |
right |
reserv whilst everi |
right |
| Moheli14.pdf |
18 |
18 |
intellig unit ltd |
right |
reserv whilst everi |
right |
| Moheli16.pdf |
16 |
16 |
agenc franc press |
right |
reserv length word |
right |
| Moheli16.pdf |
161 |
161 |
militari also accus |
right |
abus night fall |
right |
| Moheli16.pdf |
178 |
178 |
comoro foundat human |
right |
mohe volcan island |
right |
| Moheli17.pdf |
21 |
21 |
british broadcast corpor |
right |
reserv length word |
right |
| Moheli17.pdf |
156 |
156 |
govern control parliament |
right |
head state dissolv |
right |
| Moheli2.pdf |
16 |
16 |
thursday associat press |
right |
reserv section international |
right |
| Moheli3.pdf |
18 |
18 |
cycl associat press |
right |
reserv section internat |
right |
| Moheli6.pdf |
19 |
19 |
sunday associat press |
right |
reserv section internat |
right |
| Moheli7.pdf |
21 |
21 |
british broadcast corpor |
right |
reserv length word |
right |
| Moheli8.pdf |
15 |
15 |
thursday associat press |
right |
reserv section international |
right |
| Moheli1.pdf |
71 |
71 |
coup coup attempt |
independ |
franc year relat |
independ |
| Moheli1.pdf |
270 |
270 |
rest countri declar |
independ |
ordinari comoran mayott |
independ |
| Moheli1.pdf |
328 |
328 |
richer seen indict |
independ |
state failur thrive |
independ |
| Moheli10.pdf |
196 |
196 |
coup comoro sinc |
independ |
concern among pro-unionist |
independ |
| Moheli10.pdf |
233 |
233 |
constitut hardcor pro-anjouan |
independ |
movement retak control |
independ |
| Moheli10.pdf |
372 |
372 |
franc support ibrahim |
independ |
within framework associ |
independ |
| Moheli10.pdf |
520 |
520 |
percent vote full |
independ |
island oau refus |
independ |
| Moheli11.pdf |
185 |
185 |
island mayott vote |
independ |
franc rebuf attempt |
independ |
| Moheli11.pdf |
231 |
231 |
attempt secess sinc |
independ |
franc water page |
independ |
| Moheli12.pdf |
3 |
3 |
anjouan day |
independ |
number futur uncertain |
independ |
| Moheli12.pdf |
33 |
33 |
year unrecognis declar |
independ |
leader comoran island |
independ |
| Moheli12.pdf |
102 |
102 |
forward fail experi |
independ |
achiev year ago |
independ |
| Moheli12.pdf |
110 |
110 |
want part franc |
independ |
associ franc independ |
independ |
| Moheli12.pdf |
113 |
113 |
independ associ franc |
independ |
full stop now |
independ |
| Moheli12.pdf |
159 |
159 |
colonis island went |
independ |
august year anjouan |
independ |
| Moheli12.pdf |
240 |
240 |
page anjouan day |
independ |
number futur uncertain |
independ |
| Moheli13.pdf |
186 |
186 |
time sinc countri |
independ |
although interest invest |
independ |
| Moheli14.pdf |
187 |
187 |
time sinc countri |
independ |
although interest invest |
independ |
| Moheli16.pdf |
121 |
121 |
island chose forego |
independ |
remain franc two |
independ |
| Moheli2.pdf |
215 |
215 |
anjouan mohe obtain |
independ |
franc fourth island |
independ |
| Moheli2.pdf |
221 |
221 |
island mayott vote |
independ |
remain french oversea |
independ |
| Moheli3.pdf |
61 |
61 |
rule sinc gain |
independ |
franc island anjouan |
independ |
| Moheli3.pdf |
67 |
67 |
anjouan unilater declar |
independ |
august complain receiv |
independ |
| Moheli3.pdf |
136 |
136 |
vote overwhelm favor |
independ |
fourth island vote |
independ |
| Moheli4.pdf |
147 |
147 |
abdallah abdallah declar |
independ |
franc two year |
independ |
| Moheli5.pdf |
139 |
139 |
month unilater announc |
independ |
moroni order put |
independ |
| Moheli5.pdf |
198 |
198 |
movement sinc gain |
independ |
franc group men |
independ |
| Moheli6.pdf |
211 |
211 |
island mayott vote |
independ |
water page comoro |
independ |
| Moheli6.pdf |
343 |
343 |
attempt secess sinc |
independ |
franc rn-cm load-dat |
independ |
| Moheli7.pdf |
204 |
204 |
without help nation |
independ |
elector commiss ceni |
independ |
| Moheli7.pdf |
694 |
694 |
elect dissolut anjouan |
independ |
elector commiss la |
independ |
| Moheli7.pdf |
790 |
790 |
anjouan mohe declar |
independ |
situat revers sign |
independ |
| Moheli7.pdf |
842 |
842 |
franc comoro gain |
independ |
sourc told bbcm |
independ |
| Moheli7.pdf |
926 |
926 |
attempt coup sinc |
independ |
franc useful websit |
independ |
| Moheli8.pdf |
209 |
209 |
comoro island obtain |
independ |
franc fourth mayott |
independ |
| Moheli8.pdf |
214 |
214 |
fourth mayott vote |
independ |
remain french oversea |
independ |
| Moheli9.pdf |
96 |
96 |
aug unilater declar |
independ |
anjouan abdallah ibrahim |
independ |
| Moheli9.pdf |
109 |
109 |
island mohe declar |
independ |
rfic return republ |
independ |
| Moheli9.pdf |
145 |
145 |
percent popul favour |
independ |
anjouan dec 10-13 |
independ |
| Moheli9.pdf |
165 |
165 |
constitut declar island |
independ |
creat new polit |
independ |
| Moheli2.pdf |
194 |
194 |
press anoth elect |
free |
fair comoro current |
free |
| Moheli7.pdf |
100 |
100 |
ripe anjouan hold |
free |
fair elect speech |
free |
| Moheli7.pdf |
130 |
130 |
condit hold democrat |
free |
transpar elect anjouan |
free |
| Moheli12.pdf |
50 |
50 |
littl good came |
decis |
group anjouanes break |
decis |
| Moheli7.pdf |
537 |
537 |
col bacar accept |
decis |
constitut court regard |
decis |
| Moheli7.pdf |
616 |
616 |
union capit moroni |
decis |
union presid hold |
decis |
| Moheli1.pdf |
42 |
42 |
turmoil week contenti |
referendum |
threaten destabilis comoro |
referendum |
| Moheli1.pdf |
99 |
99 |
decad opposit monday |
referendum |
amend comoran constitut |
referendum |
| Moheli1.pdf |
144 |
144 |
union surviv provis |
referendum |
end rais fear |
referendum |
| Moheli1.pdf |
475 |
475 |
back turmoil result |
referendum |
alreadi tension mount |
referendum |
| Moheli10.pdf |
61 |
61 |
among pro-union parti |
referendum |
across archipelago new |
referendum |
| Moheli10.pdf |
350 |
350 |
led abdallah ibrahim |
referendum |
separatist constitut carri |
referendum |
| Moheli10.pdf |
514 |
514 |
februari leadership respond |
referendum |
januari claim percent |
referendum |
| Moheli10.pdf |
655 |
655 |
central govern put |
referendum |
accord offer wide |
referendum |
| Moheli10.pdf |
698 |
698 |
anjouan remain place |
referendum |
member want run |
referendum |
| Moheli10.pdf |
706 |
706 |
resign week result |
referendum |
publicis new transit |
referendum |
| Moheli10.pdf |
742 |
742 |
reconfirm commit decemb |
referendum |
draft constitut request |
referendum |
| Moheli10.pdf |
807 |
807 |
stabil comoro post |
referendum |
period mechan transfer |
referendum |
| Moheli16.pdf |
125 |
125 |
remain franc two |
referendum |
1970s peopl mohe |
referendum |
| Moheli17.pdf |
7 |
7 |
move hold constitut |
referendum |
bbc monitor africa |
referendum |
| Moheli17.pdf |
40 |
40 |
comment state-own media |
referendum |
project multipl occas |
referendum |
| Moheli17.pdf |
162 |
162 |
dissolv passag omit |
referendum |
held march contrari |
referendum |
| Moheli17.pdf |
167 |
167 |
march contrari said |
referendum |
held time legisl |
referendum |
| Moheli17.pdf |
182 |
182 |
taken grant even |
referendum |
vote victori parliamentarian |
referendum |
| Moheli17.pdf |
199 |
199 |
mohe island reject |
referendum |
also escap sambi |
referendum |
| Moheli17.pdf |
211 |
211 |
mohe resid oppos |
referendum |
just hand malici |
referendum |
| Moheli17.pdf |
241 |
241 |
move hold constitut |
referendum |
end document water |
referendum |
| Moheli6.pdf |
317 |
317 |
new constitut submit |
referendum |
june commiss member |
referendum |
| Moheli8.pdf |
191 |
191 |
prepar hold constitut |
referendum |
sunday approv allow |
referendum |
| Moheli9.pdf |
139 |
139 |
oct secessionist organis |
referendum |
say show percent |
referendum |
| Moheli1.pdf |
336 |
336 |
island refus cast |
coloni |
shackl furi grand |
coloni |
| Moheli11.pdf |
159 |
159 |
uniti comoro former |
coloni |
ruler franc la |
coloni |
| Moheli12.pdf |
203 |
203 |
sacrosanct principl inviol |
coloni |
border comoran state |
coloni |
| Moheli6.pdf |
185 |
185 |
uniti comoro former |
coloni |
ruler franc la |
coloni |
| Moheli1.pdf |
518 |
518 |
frederick forsyth dog |
war |
gone long suffer |
war |
| Moheli4.pdf |
115 |
115 |
american fight intern |
war |
terror wit told |
war |
| Moheli7.pdf |
711 |
711 |
proport lead civil |
war |
anjouan secessionist dream |
war |
| Moheli9.pdf |
182 |
182 |
tension erupt mini-civil |
war |
sever peopl kill |
war |
## Tokens consisting of 18 documents and 1 docvar.
## Moheli1.pdf :
## [1] "world" "coup-pron" "state" "face"
## [5] "return" "instabl" "near" "two"
## [9] "decad" "calm" "comoro" "telegraph.co.uk"
## [ ... and 527 more ]
##
## Moheli10.pdf :
## [1] "comoro" "irin" "brief" "separatist" "crisi"
## [6] "africa" "new" "novemb" "wednesday" "allafrica"
## [11] "inc" "length"
## [ ... and 808 more ]
##
## Moheli11.pdf :
## [1] "comoro" "sign" "deal" "end" "secessionist"
## [6] "crisi" "associat" "press" "internat" "februari"
## [11] "sunday" "associat"
## [ ... and 233 more ]
##
## Moheli12.pdf :
## [1] "anjouan" "day" "independ" "number" "futur" "uncertain"
## [7] "agenc" "franc" "press" "english" "october" "wednesday"
## [ ... and 374 more ]
##
## Moheli13.pdf :
## [1] "polit" "discont" "mohéli" "economist" "intellig" "unit"
## [7] "eiu" "countri" "report" "februari" "countri" "report"
## [ ... and 253 more ]
##
## Moheli14.pdf :
## [1] "comoro" "polit" "quick" "view" "polit" "discont"
## [7] "mohéli" "eiu" "viewswir" "februari" "tuesday" "viewswir"
## [ ... and 237 more ]
##
## [ reached max_ndoc ... 12 more documents ]
Moheli.tokens2
#create dfm from first tokenized steps
#word cloud 
#co-occurance
## elect anjouan sambi said govern moroni june
## 16351 15674 10089 8662 8597 8508 8277
## bacar mayott separatist
## 7137 7041 6703
## [1] "elect" "anjouan" "sambi" "said" "govern"
## [6] "moroni" "june" "bacar" "mayott" "separatist"
## [11] "polit" "press" "interim" "union" "sign"
## [16] "island" "leader" "poll" "april" "oau"
## [21] "presid" "mohe" "want" "appoint" "nation"
