blob: a4016a50bc98d8bb29cd126f49a6f47b5d589d1a [file] [log] [blame]
Marc Kupietz5a336b62021-11-27 17:51:35 +01001---
2title: "Kookkurrenzanalyse zu aufmerksam"
3output:
4 html_document:
5 css: style.css
6 keep_md: yes
Marc Kupietz77093382021-12-07 10:32:46 +01007 self_contained: false
Marc Kupietz5a336b62021-11-27 17:51:35 +01008---
9
10```{r setup, include=FALSE}
11knitr::opts_chunk$set(echo = FALSE, warnings = FALSE)
12library(RKorAPClient)
13library(kableExtra)
14library(DT)
15library(tidyverse)
16kco <- new("KorAPConnection", verbose=T)
17if (!exists('ca')) {
18ca <- kco %>%
19 collocationAnalysis(
20 "aufmerksam",
21 leftContextSize = 2,
22 rightContextSize = 2,
23 exactFrequencies = TRUE,
24 searchHitsSampleLimit = 1000,
25 topCollocatesLimit = 10,
26 withinSpan = "",
27 maxRecurse=1
28 )
29}
30```
31
32```{r ca}
33ca %>%
34 mutate(Beispiel=sprintf('<a href="%s">%s</a>', webUIRequestUrl, example)) %>%
35 select(Beispiel, logDice, pmi, ll) %>%
36 head(50) %>%
37 datatable(escape = F,
38 extensions = c('Buttons'),
39 options = list(
40 buttons = c('copy', 'csv', 'excel', 'pdf', 'print'),
41 pageLength = 25,
42 dom = 'ftpB'
43 )) %>%
44 formatRound(columns=~logDice + pmi + ll,digits=2)
45```