R/data-documentation.R
data_char_ukimmig2010.Rd
Extracts from the election manifestos of 9 UK political parties from 2010, related to immigration or asylum-seekers.
data_char_ukimmig2010
A named character vector of plain ASCII texts
data_corpus_ukimmig2010 <-
corpus(data_char_ukimmig2010,
docvars = data.frame(party = names(data_char_ukimmig2010)))
summary(data_corpus_ukimmig2010, showmeta = TRUE)
#> Corpus consisting of 9 documents, showing 9 documents:
#>
#> Text Types Tokens Sentences party
#> BNP 1125 3280 88 BNP
#> Coalition 142 260 4 Coalition
#> Conservative 251 499 15 Conservative
#> Greens 322 679 21 Greens
#> Labour 298 683 29 Labour
#> LibDem 251 483 14 LibDem
#> PC 77 114 5 PC
#> SNP 88 134 4 SNP
#> UKIP 346 723 26 UKIP
#>