Tools for accessing data from National Library of Norway's dhlab (digital humanities laboratory). Provides wrappers for accessing our API services at < https://api.nb.no/dhlab/>. To learn more about dhlab, visit out site < https://www.nb.no/dh-lab/>.
The goal of dhlabR is to provide access to National Library text data for quantitative analysis. It provides utility functions for requesting data from the dhlab api (api.nb.no/dhlab)
You can install the development version of dhlabR from GitHub with:
# install.packages("devtools")
devtools::install_github("NationalLibraryOfNorway/dhlabR")
This is a basic example which shows you how to solve a common problem:
library(dhlabR)
# Get corpus
corpus = get_document_corpus(doctype="digibok", "author" = "Ibsen", limit=100)