Learn R Programming

RKorAPClient (version 1.0.0)

corpusStats,KorAPConnection-method: Fetch information about a (virtual) corpus

Description

Fetch information about a (virtual) corpus

Usage

# S4 method for KorAPConnection
corpusStats(kco, vc = "", verbose = kco@verbose, as.df = FALSE)

Value

KorAPCorpusStats object with the slots documents, tokens, sentences, paragraphs

Arguments

kco

KorAPConnection() object (obtained e.g. from new("KorAPConnection")

vc

string describing the virtual corpus. An empty string (default) means the whole corpus, as far as it is license-wise accessible.

verbose

logical. If TRUE, additional diagnostics are printed.

as.df

return result as data frame instead of as S4 object?

Examples

Run this code

if (FALSE) {

kco <- new("KorAPConnection")
corpusStats(kco, "pubDate in 2017 & textType=/Zeitung.*/")
}

Run the code above in your browser using DataLab