blob: eb9ad8c001b92cec76884d3859b0445c73a7b56b [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)
Marc Kupietz617266d2025-02-27 10:43:07 +010016kco <- KorAPConnection(verbose=T)
Marc Kupietz5a336b62021-11-27 17:51:35 +010017if (!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```