title: “Lakota” output: html_document —

## 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 15 documents and 1 docvar.
## # Description: df[,3] [15 × 3]
##   doc_id  text                docvar1
##   <chr>   <chr>               <chr>  
## 1 L1.pdf  "\"          \"..." L1     
## 2 L10.pdf "\"          \"..." L10    
## 3 L11.pdf "\"       Lak\"..." L11    
## 4 L12.pdf "\"       Lak\"..." L12    
## 5 L13.pdf "\"        Lo\"..." L13    
## 6 L14.pdf "\"          \"..." L14    
## # … with 9 more rows

#create corpus

## [1] 15
##   docvar1
## 1      L1
## 2     L10
## 3     L11
## 4     L12
## 5     L13
## 6     L14
## Corpus consisting of 15 documents, showing 15 documents:
## 
##     Text Types Tokens Sentences docvar1
##   L1.pdf   648   1699        85      L1
##  L10.pdf   145    225        13     L10
##  L11.pdf   307    687        21     L11
##  L12.pdf   307    687        21     L12
##  L13.pdf   631   1427        63     L13
##  L14.pdf   282    498        23     L14
##  L15.pdf   340    718        30     L15
##  L16.pdf   372    756        23     L16
##   L2.pdf   328    735        28      L2
##   L3.pdf   262    507        22      L3
##   L4.pdf   541   1310        40      L4
##   L6.pdf   414    904        41      L6
##   L7.pdf   340    776        24      L7
##   L8.pdf   452    895        34      L8
##   L9.pdf   271    502        20      L9

#create dfm

## Length  Class   Mode 
##  26025    dfm     S4

#Cleaning up using tokens

##         Length Class  Mode     
## L1.pdf  766    -none- character
## L10.pdf 117    -none- character
## L11.pdf 343    -none- character
## L12.pdf 343    -none- character
## L13.pdf 737    -none- character
## L14.pdf 275    -none- character
## L15.pdf 351    -none- character
## L16.pdf 370    -none- character
## L2.pdf  385    -none- character
## L3.pdf  240    -none- character
## L4.pdf  640    -none- character
## L6.pdf  407    -none- character
## L7.pdf  372    -none- character
## L8.pdf  433    -none- character
## L9.pdf  271    -none- character

#kwic doesn’t work with dfm, so you have to use tokens

docname from to pre keyword post pattern
L1.pdf 13 13 thursday est llc right reserv web blog right
L1.pdf 119 119 creat occas support right indigen peopl live right
L1.pdf 199 199 simpl indigen peopl right intern law anyon right
L1.pdf 240 240 colon grant limit right fall far short right
L1.pdf 386 386 violat intern treati right lakota declar withdraw right
L1.pdf 580 580 struggl sovereignti treati right pledg assist sovereign right
L1.pdf 671 671 provid warranti confer right materi inform provid right
L1.pdf 756 756 re-distributor expressli reserv right delet post comment right
L10.pdf 12 12 pm est u.p.i right reserv length word right
L11.pdf 17 17 pm est llc right reserv web blog right
L11.pdf 245 245 provid warranti confer right materi inform provid right
L11.pdf 333 333 re-distributor expressli reserv right delet post comment right
L12.pdf 17 17 pm est llc right reserv web blog right
L12.pdf 245 245 provid warranti confer right materi inform provid right
L12.pdf 333 333 re-distributor expressli reserv right delet post comment right
L13.pdf 24 24 est canadian press right reserv section international right
L14.pdf 19 19 media group ltd right reserv section news right
L15.pdf 34 34 media group limit right reserv section news right
L2.pdf 17 17 media group ltd right reserv section editorial right
L3.pdf 16 16 gmt associat press right reserv section domestic right
L4.pdf 17 17 saturday est llc right reserv web blog right
L4.pdf 239 239 express sovereign lakota right tegihya kte said right
L4.pdf 541 541 provid warranti confer right materi inform provid right
L4.pdf 619 619 re-distributor expressli reserv right delet post comment right
L7.pdf 19 19 agenc franc press right reserv length word right
L7.pdf 59 59 us long-tim indian right activist russel mean right
L7.pdf 205 205 communiti legal within right free independ said right
L7.pdf 262 262 adopt non-bind declar right indigen peopl despit right
L7.pdf 288 288 intern confer indigen right geneva told news right
L8.pdf 100 100 goeth peac pipe right stori lakota overshadow right
L8.pdf 362 362 lakota play card right u.s give good right
L9.pdf 19 19 gmt associat press right reserv section state right
docname from to pre keyword post pattern
L1.pdf 79 79 deliv declar continu independ just time winter independ
L1.pdf 142 142 consid recogn lakota independ nation withdraw treati independ
L1.pdf 351 351 colonist hold land independ free legal author independ
L1.pdf 376 376 u.s canada violat independ indigen peopl cleric independ
L1.pdf 472 472 island assert freedom independ happen action lakota independ
L1.pdf 586 586 sovereign peopl seek independ lakota invit live independ
L10.pdf 32 32 renounc treati now independ nation american indian independ
L10.pdf 54 54 now free countri independ unite state america independ
L11.pdf 117 117 initi glimps free independ free lakota nation independ
L11.pdf 197 197 natur owner lakota independ nation lakota oyat independ
L12.pdf 117 117 initi glimps free independ free lakota nation independ
L12.pdf 197 197 natur owner lakota independ nation lakota oyat independ
L16.pdf 139 139 union gave back independ three year later independ
L16.pdf 299 299 much american state independ feder govern among independ
L4.pdf 304 304 treati becom free independ countri alert famili independ
L4.pdf 312 312 now reassum freedom independ back natur internat independ
L6.pdf 181 181 make mandatori becom independ independ cover five-st independ
L6.pdf 182 182 mandatori becom independ independ cover five-st area independ
L6.pdf 204 204 withdrawn empir re-establish independ understand seced mean independ
L6.pdf 249 249 confirm document continu independ draft among tradit independ
L7.pdf 207 207 within right free independ said mean water independ
L7.pdf 227 227 draft declar continu independ overt play titl independ
L7.pdf 234 234 unite state declar independ england thirty-thre year independ
docname from to pre keyword post pattern
L1.pdf 7 7 part u.s atlantic free press decemb thursday free
L1.pdf 18 18 web blog atlantic free press length word free
L1.pdf 25 25 bodi dec atlantic free press deliv mission free
L1.pdf 123 123 indigen peopl live free take whatev action free
L1.pdf 352 352 hold land independ free legal author indigen free
L1.pdf 436 436 way true way free left govern look free
L1.pdf 601 601 document live tax free provid resid renounc free
L10.pdf 52 52 unite nation now free countri independ unite free
L11.pdf 10 10 broken treati atlantic free press januari friday free
L11.pdf 22 22 web blog atlantic free press length word free
L11.pdf 29 29 bodi jan atlantic free press deliv brenda free
L11.pdf 116 116 provid initi glimps free independ free lakota free
L11.pdf 118 118 glimps free independ free lakota nation regain free
L12.pdf 10 10 broken treati atlantic free press januari friday free
L12.pdf 22 22 web blog atlantic free press length word free
L12.pdf 29 29 bodi jan atlantic free press deliv brenda free
L12.pdf 116 116 provid initi glimps free independ free lakota free
L12.pdf 118 118 glimps free independ free lakota nation regain free
L15.pdf 86 86 within unite state free diverg us law free
L4.pdf 9 9 wound knee want free atlantic free press free
L4.pdf 11 11 want free atlantic free press decemb saturday free
L4.pdf 22 22 web blog atlantic free press length word free
L4.pdf 29 29 bodi dec atlantic free press deliv via free
L4.pdf 100 100 swell end protect free sovereign lakota nation free
L4.pdf 287 287 wound knee want free lakota sioux indian free
L4.pdf 303 303 mandat treati becom free independ countri alert free
L4.pdf 635 635 wound knee want free load-dat decemb end free
L7.pdf 54 54 area encompass countri free join us long-tim free
L7.pdf 206 206 legal within right free independ said mean free
L9.pdf 7 7 mean say cancer free associat press state free
L9.pdf 61 61 said essenti cancer free now believ good free
L9.pdf 133 133 oncologist essenti cancer free now said die free
L9.pdf 264 264 mean say cancer free online http://www.russellmeansfreedom.com/ load-dat free
docname from to pre keyword post pattern
docname from to pre keyword post pattern
L8.pdf 202 202 one support lakota decis leav union reduc decis
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
L1.pdf 71 71 lakota nation cut coloni driver licens decemb coloni
L1.pdf 225 225 treati conclud briberi coloni puppet instead valid coloni
L1.pdf 307 307 eastern half known coloni canada northeastern u.s coloni
L1.pdf 419 419 larami never honor coloni catastroph intent part coloni
L1.pdf 510 510 land asset resourc coloni u.s canada just coloni
L1.pdf 546 546 indian puppet set coloni indian act band coloni
L1.pdf 563 563 amongst relat without coloni power support whiski coloni
L4.pdf 69 69 calvari wound year coloni enforc back peopl coloni
L4.pdf 325 325 www.lakotafreedom.com > face coloni apartheid condit impos coloni
L6.pdf 143 143 describ de facto coloni govern set unite coloni
L7.pdf 244 244 critic mass combat coloni want make sure coloni
docname from to pre keyword post pattern
L13.pdf 247 247 upris hundr protest occupi south dakota town occupi
L15.pdf 11 11 oglala lakota nation occupi land north south occupi
L15.pdf 204 204 oglala lakota nation occupi land north south occupi
L6.pdf 113 113 lakota territori illeg occupi guid treati broken occupi
docname from to pre keyword post pattern
L1.pdf 95 95 chang wound knee occupat internat indian treati occupat
docname from to pre keyword post pattern
docname from to pre keyword post pattern
L6.pdf 142 142 govern describ de facto coloni govern set facto
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
L13.pdf 252 252 dakota town site massacr indian u.s water massacr
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
L16.pdf 341 341 recent fought bitter war secess mr van war
L16.pdf 351 351 intervent might prevent war fight broke abkhazian war
L6.pdf 347 347 nazi occup world war ii mean say war
L8.pdf 147 147 someth made cold war frighten soviet soviet war
L8.pdf 352 352 lose side civil war can boost tourism war
docname from to pre keyword post pattern
docname from to pre keyword post pattern
## Tokens consisting of 15 documents and 1 docvar.
## L1.pdf :
##  [1] "lakota"   "nation"   "confirm"  "part"     "u.s"      "atlantic"
##  [7] "free"     "press"    "decemb"   "thursday" "est"      "llc"     
## [ ... and 754 more ]
## 
## L10.pdf :
##  [1] "lakota" "indian" "work"   "seced"  "u.s"    "upi"    "decemb" "friday"
##  [9] "pm"     "est"    "u.p.i"  "right" 
## [ ... and 105 more ]
## 
## L11.pdf :
##  [1] "lakota"    "oyat"      "recov"     "lakota"    "territori" "trail"    
##  [7] "broken"    "treati"    "atlantic"  "free"      "press"     "januari"  
## [ ... and 331 more ]
## 
## L12.pdf :
##  [1] "lakota"    "oyat"      "recov"     "lakota"    "territori" "trail"    
##  [7] "broken"    "treati"    "atlantic"  "free"      "press"     "januari"  
## [ ... and 331 more ]
## 
## L13.pdf :
##  [1] "longtim"  "activist" "russel"   "mean"     "die"      "year"    
##  [7] "fight"    "american" "indian"   "caus"     "longtim"  "indian"  
## [ ... and 725 more ]
## 
## L14.pdf :
##  [1] "nativ"              "american"           "activist"          
##  [4] "led"                "wound"              "knee"              
##  [7] "occup"              "record"             "kitchener-waterloo"
## [10] "ontario"            "october"            "tuesday"           
## [ ... and 263 more ]
## 
## [ reached max_ndoc ... 9 more documents ]
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern
docname from to pre keyword post pattern

Lakota.tokens2

#create dfm from first tokenized steps

#word cloud

#co-occurance

##            via         govern          state          unite re-distributor 
##           8169           7294           7054           6769           6465 
##           mean           land          peopl           year        content 
##           6443           6397           6339           5869           5552
##  [1] "via"            "govern"         "state"          "unite"         
##  [5] "re-distributor" "mean"           "land"           "peopl"         
##  [9] "year"           "content"        "currenc"        "american"      
## [13] "aborigin"       "rate"           "comment"        "dakota"        
## [17] "water"          "treati"         "activist"       "ride"          
## [21] "post"           "averag"         "freedom"        "law"           
## [25] "offer"