Learn R Programming

RKorAPClient (version 0.5.9)

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)

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?

Value

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

Examples

Run this code
# NOT RUN {
corpusStats(new("KorAPConnection"))
# }
# NOT RUN {
kco <- new("KorAPConnection")
corpusStats(kco, "pubDate in 2017 & articleType=/Zeitung.*/")

# }

Run the code above in your browser using DataLab