demo/retrieveTitlesFromDeliko.R

library(RKorAPClient)
library(tidyverse)

VC = "textTypeRef = /Arzt.*/" # virtual corpus with just doctor novels etc.

query <- KorAPConnection("https://korap.dnb.de", verbose = TRUE) |>
	corpusQuery(
		"<base/s=t>",	# this finds each text once
		vc = VC,
		fields = c(
			"textSigle",
			"title",
			"subTitle"
			#		"author",
			#		"textType",
			#		"textTypeRef",
			#		"publisher",
			#		"pubDate",
			#		"pubPlace",
			#		"ISBN",
			#		"URN"
		)
	) |>
	fetchAll()

df <- query@collectedMatches |>
	select(-c("matchStart", "matchEnd"))

View(df)

Try the RKorAPClient package in your browser

Any scripts or data that you put into this service are public.

RKorAPClient documentation built on Sept. 9, 2026, 5:11 p.m.