blob: 800ee015d68522136086f1d4491202f0b04558f6 [file] [log] [blame]
Marc Kupietz4152c842025-06-19 16:24:45 +02001library(RKorAPClient)
2library(tidyverse)
3
4VC = "textTypeRef = /Arzt.*/" # virtual corpus with just doctor novels etc.
5
6query <- KorAPConnection("https://korap.dnb.de", verbose = TRUE) |>
7 corpusQuery(
8 "<base/s=t>", # this finds each text once
9 vc = VC,
10 fields = c(
11 "textSigle",
12 "title",
13 "subTitle"
14 # "author",
15 # "textType",
16 # "textTypeRef",
17 # "publisher",
18 # "pubDate",
19 # "pubPlace",
20 # "ISBN",
21 # "URN"
22 )
23 ) |>
24 fetchAll()
25
26df <- query@collectedMatches |>
27 select(-c("matchStart", "matchEnd"))
28
29View(df)