## 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 20 documents and 1 docvar.
## # Description: df[,3] [20 × 3]
## doc_id text docvar1
## <chr> <chr> <chr>
## 1 Anjoun1.pdf "\" \"..." Anjoun1
## 2 Anjoun10.pdf "\" \"..." Anjoun10
## 3 Anjoun11.pdf "\" \"..." Anjoun11
## 4 Anjoun12.pdf "\" \"..." Anjoun12
## 5 Anjoun13.pdf "\" \"..." Anjoun13
## 6 Anjoun14.pdf "\" \"..." Anjoun14
## # … with 14 more rows
#create corpus
## [1] 20
## docvar1
## 1 Anjoun1
## 2 Anjoun10
## 3 Anjoun11
## 4 Anjoun12
## 5 Anjoun13
## 6 Anjoun14
## Corpus consisting of 20 documents, showing 20 documents:
##
## Text Types Tokens Sentences docvar1
## Anjoun1.pdf 318 642 20 Anjoun1
## Anjoun10.pdf 293 779 22 Anjoun10
## Anjoun11.pdf 257 720 19 Anjoun11
## Anjoun12.pdf 322 665 18 Anjoun12
## Anjoun13.pdf 224 579 15 Anjoun13
## Anjoun14.pdf 243 504 15 Anjoun14
## Anjoun15.pdf 312 673 20 Anjoun15
## Anjoun16.pdf 134 248 8 Anjoun16
## Anjoun17.pdf 284 695 30 Anjoun17
## Anjoun18.pdf 247 502 15 Anjoun18
## Anjoun19.pdf 269 544 13 Anjoun19
## Anjoun2.pdf 288 821 25 Anjoun2
## Anjoun20.pdf 345 732 25 Anjoun20
## Anjoun3.pdf 362 738 23 Anjoun3
## Anjoun4.pdf 336 753 26 Anjoun4
## Anjoun5.pdf 429 917 19 Anjoun5
## Anjoun6.pdf 405 861 31 Anjoun6
## Anjoun7.pdf 308 663 23 Anjoun7
## Anjoun8.pdf 276 560 20 Anjoun8
## Anjoun9.pdf 314 780 13 Anjoun9
#create dfm
## Length Class Mode
## 28120 dfm S4
#Cleaning up using tokens
## Length Class Mode
## Anjoun1.pdf 340 -none- character
## Anjoun10.pdf 398 -none- character
## Anjoun11.pdf 381 -none- character
## Anjoun12.pdf 344 -none- character
## Anjoun13.pdf 298 -none- character
## Anjoun14.pdf 272 -none- character
## Anjoun15.pdf 352 -none- character
## Anjoun16.pdf 132 -none- character
## Anjoun17.pdf 303 -none- character
## Anjoun18.pdf 266 -none- character
## Anjoun19.pdf 260 -none- character
## Anjoun2.pdf 419 -none- character
## Anjoun20.pdf 365 -none- character
## Anjoun3.pdf 387 -none- character
## Anjoun4.pdf 369 -none- character
## Anjoun5.pdf 488 -none- character
## Anjoun6.pdf 453 -none- character
## Anjoun7.pdf 327 -none- character
## Anjoun8.pdf 280 -none- character
## Anjoun9.pdf 382 -none- character
#kwic doesn’t work with dfm, so you have to use tokens
| Anjoun19.pdf |
70 |
70 |
just respect human |
right |
mobil whole potenti |
right |
| Anjoun3.pdf |
33 |
33 |
word bodi human |
right |
violat anjouan comoro |
right |
| Anjoun3.pdf |
119 |
119 |
flagrant violat human |
right |
peopl arrest tortur |
right |
| Anjoun5.pdf |
22 |
22 |
british broadcast corpor |
right |
reserv length word |
right |
| Anjoun6.pdf |
16 |
16 |
gmt associat press |
right |
reserv section international |
right |
| Anjoun1.pdf |
225 |
225 |
anjouan unilater declar |
independ |
diplomat bid led |
independ |
| Anjoun1.pdf |
325 |
325 |
comor mohe sinc |
independ |
franc islamic republ |
independ |
| Anjoun11.pdf |
72 |
72 |
august anjouan declar |
independ |
main comoran island |
independ |
| Anjoun11.pdf |
150 |
150 |
august anjouan declar |
independ |
main comoran island |
independ |
| Anjoun12.pdf |
229 |
229 |
anjouan unilater declar |
independ |
diplomat bid led |
independ |
| Anjoun12.pdf |
329 |
329 |
comor mohe sinc |
independ |
franc islamic republ |
independ |
| Anjoun14.pdf |
95 |
95 |
anjouan unilater declar |
independ |
islamic republ comoro |
independ |
| Anjoun14.pdf |
238 |
238 |
fold sinc proclam |
independ |
water page comoro |
independ |
| Anjoun15.pdf |
56 |
56 |
unilater declar anjouan |
independ |
islamic feder republ |
independ |
| Anjoun15.pdf |
166 |
166 |
creat confeder union |
independ |
state feder taken |
independ |
| Anjoun18.pdf |
69 |
69 |
two movement organis |
independ |
anjouan popular anjouan |
independ |
| Anjoun18.pdf |
85 |
85 |
anjouan declar unilater |
independ |
islamic feder republ |
independ |
| Anjoun18.pdf |
251 |
251 |
comoro island won |
independ |
franc fourth mayott |
independ |
| Anjoun19.pdf |
55 |
55 |
3rd august set |
independ |
state peopl anjouan |
independ |
| Anjoun2.pdf |
61 |
61 |
presid milit seek |
independ |
indian ocean island |
independ |
| Anjoun2.pdf |
142 |
142 |
accept result referendum |
independ |
anjouan last month |
independ |
| Anjoun2.pdf |
216 |
216 |
presid milit seek |
independ |
indian ocean island |
independ |
| Anjoun2.pdf |
294 |
294 |
accept result referendum |
independ |
anjouan last month |
independ |
| Anjoun2.pdf |
386 |
386 |
countri organ recogn |
independ |
tini island also |
independ |
| Anjoun20.pdf |
41 |
41 |
island intern recogn |
independ |
comoro appear ill-found |
independ |
| Anjoun20.pdf |
158 |
158 |
anjouan unilater declar |
independ |
moroni confid victori |
independ |
| Anjoun20.pdf |
289 |
289 |
leader want maintain |
independ |
within confeder oppos |
independ |
| Anjoun20.pdf |
340 |
340 |
attempt coup sinc |
independ |
franc fourth island |
independ |
| Anjoun3.pdf |
339 |
339 |
polit instabl sinc |
independ |
franc faction anjouan |
independ |
| Anjoun6.pdf |
55 |
55 |
colonel seek island |
independ |
explosion gunfir start |
independ |
| Anjoun6.pdf |
129 |
129 |
upheav sinc gain |
independ |
franc late bob |
independ |
| Anjoun6.pdf |
175 |
175 |
said seek island |
independ |
one comoro offic |
independ |
| Anjoun8.pdf |
266 |
266 |
oau recognis anjouan |
independ |
abeid seiz power |
independ |
| Anjoun9.pdf |
96 |
96 |
aug unilater declar |
independ |
anjouan abdallah ibrahim |
independ |
| Anjoun9.pdf |
109 |
109 |
island mohe declar |
independ |
rfic return republ |
independ |
| Anjoun9.pdf |
145 |
145 |
percent popul favour |
independ |
anjouan dec 10-13 |
independ |
| Anjoun9.pdf |
165 |
165 |
constitut declar island |
independ |
creat new polit |
independ |
| Anjoun17.pdf |
162 |
162 |
guy leav power |
free |
fair transpar democrat |
free |
| Anjoun19.pdf |
66 |
66 |
build new societi |
free |
just respect human |
free |
| Anjoun5.pdf |
143 |
143 |
pave way hold |
free |
fair presidenti elect |
free |
| Anjoun5.pdf |
282 |
282 |
follow mediat failur |
decis |
foreign partner now |
decis |
| Anjoun5.pdf |
332 |
332 |
back african union |
decis |
offer moham bacar |
decis |
| Anjoun5.pdf |
403 |
403 |
sambi offici announc |
decis |
resort militari option |
decis |
| Anjoun13.pdf |
5 |
5 |
anjouan separatist claim |
referendum |
victori agenc franc |
referendum |
| Anjoun13.pdf |
69 |
69 |
said unoffici result |
referendum |
held sunday island |
referendum |
| Anjoun13.pdf |
136 |
136 |
said unoffici result |
referendum |
held sunday island |
referendum |
| Anjoun13.pdf |
211 |
211 |
anjouan separatist claim |
referendum |
victori anjouan separatist |
referendum |
| Anjoun13.pdf |
247 |
247 |
januari reject legitimaci |
referendum |
well poll began |
referendum |
| Anjoun2.pdf |
141 |
141 |
refus accept result |
referendum |
independ anjouan last |
referendum |
| Anjoun2.pdf |
154 |
154 |
wednesday oau said |
referendum |
taken place climat |
referendum |
| Anjoun2.pdf |
293 |
293 |
refus accept result |
referendum |
independ anjouan last |
referendum |
| Anjoun2.pdf |
306 |
306 |
wednesday oau said |
referendum |
held climat intimid |
referendum |
| Anjoun2.pdf |
313 |
313 |
anjouan went ahead |
referendum |
oau ignor repeat |
referendum |
| Anjoun2.pdf |
332 |
332 |
abeid said ad |
referendum |
aim show everyon |
referendum |
| Anjoun20.pdf |
4 |
4 |
anjouan separatist claim |
referendum |
victori agenc franc |
referendum |
| Anjoun20.pdf |
29 |
29 |
claim victori monday |
referendum |
futur anjouan hope |
referendum |
| Anjoun20.pdf |
111 |
111 |
confirm recognis legitimaci |
referendum |
oau alreadi friday |
referendum |
| Anjoun20.pdf |
117 |
117 |
friday condemn organis |
referendum |
circumst recognis result |
referendum |
| Anjoun20.pdf |
183 |
183 |
short campaign preced |
referendum |
report integrationist intimid |
referendum |
| Anjoun20.pdf |
225 |
225 |
anjouan separatist claim |
referendum |
victori invit oau |
referendum |
| Anjoun3.pdf |
179 |
179 |
new constitut put |
referendum |
februari saturday comoro |
referendum |
| Anjoun9.pdf |
139 |
139 |
oct secessionist organis |
referendum |
say show percent |
referendum |
| Anjoun14.pdf |
267 |
267 |
histori former french |
coloni |
load-dat septemb end |
coloni |
| Anjoun18.pdf |
33 |
33 |
anjouan becom french |
coloni |
denounc recent reconcili |
coloni |
| Anjoun20.pdf |
135 |
135 |
headquart franc former |
coloni |
power simpli express |
coloni |
| Anjoun6.pdf |
431 |
431 |
armi invad anjouan |
liber |
island hand moham |
liber |
| Anjoun19.pdf |
150 |
150 |
intimid manipul de |
facto |
embargo impos island |
facto |
| Anjoun9.pdf |
182 |
182 |
tension erupt mini-civil |
war |
sever peopl kill |
war |
## Tokens consisting of 20 documents and 1 docvar.
## Anjoun1.pdf :
## [1] "allege" "coup" "plotter" "miss" "comoro" "anjouan"
## [7] "agenc" "franc" "press" "english" "septemb" "wednesday"
## [ ... and 328 more ]
##
## Anjoun10.pdf :
## [1] "envoy" "comoro" "militari" "regim" "visit"
## [6] "separatist" "anjouan" "agenc" "franc" "press"
## [11] "english" "august"
## [ ... and 386 more ]
##
## Anjoun11.pdf :
## [1] "urgent" "comoroan" "junta" "sign" "deal"
## [6] "anjouan" "separatist" "agenc" "franc" "press"
## [11] "english" "august"
## [ ... and 369 more ]
##
## Anjoun12.pdf :
## [1] "comoro" "soldier" "arrest" "foil" "coup" "anjouan"
## [7] "agenc" "franc" "press" "english" "septemb" "wednesday"
## [ ... and 332 more ]
##
## Anjoun13.pdf :
## [1] "urgent" "anjouan" "separatist" "claim" "referendum"
## [6] "victori" "agenc" "franc" "press" "english"
## [11] "januari" "monday"
## [ ... and 286 more ]
##
## Anjoun14.pdf :
## [1] "comoro" "anjouan" "militari" "ruler" "say" "coup"
## [7] "bid" "foil" "agenc" "franc" "press" "english"
## [ ... and 260 more ]
##
## [ reached max_ndoc ... 14 more documents ]
Anjoun.tokens2
#create dfm from first tokenized steps
#word cloud 
#co-occurance
## oau sign island said militari end three presid
## 14043 9816 7592 7355 7275 6552 6487 6026
## govern african
## 5946 5809
## [1] "oau" "sign" "island" "said" "militari"
## [6] "end" "three" "presid" "govern" "african"
## [11] "water" "state" "union" "autonomi" "leader"
## [16] "independ" "deal" "accord" "antananarivo" "intern"
## [21] "last" "mutsamudu" "feder" "referendum" "told"
