robespierre | R Documentation |
A lexical table containing frequencies of 5 words from 9 different public discourses of French politician Robespierre (between november 1793 and july 1794).
data(robespierre)
The format is: num [1:6, 1:10] 464 45 35 30 6 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:6] "de" "peuple" "republique" "ennemi" ... ..$ : chr [1:10] "D1" "D2" "D3" "D4" ...
The last line of the table gives the total frequency of all the other forms in each of these discourses.
Lafon P. (1980) Sur la variabilit\'e de la fr\'e quence des formes dans un corpus, Mots, 1, pp. 127–165.
Lafon P. (1980) Sur la variabilit\'e de la fr\'e quence des formes dans un corpus, Mots, 1, pp. 127–165.
data(robespierre) ## See graphic in Lafon, 1980 - page 140 t <- colSums(robespierre)["D9"]; # size of the part T <- sum(robespierre); # size of the corpus f <- rowSums(robespierre)["peuple"]; # total frequency of "peuple" p <- dhyper(1:15, f, T-f, t) title <- "Probability of each frequency of 'peuple' in the 'D9' discourse from 1 to 15" plot(p, type="h", main=title, xlab="k", ylab="Prob(k)");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.