ton_corpus: Corpus of ToN texts

Description Usage Arguments Value See Also Examples

Description

A function for reading selected ToN texts to a corpus. Builds on

Usage

1
ton_corpus(tonFolder, ids, cores = NULL)

Arguments

tonFolder

Character vector specifying either absolute or relative path to the talk-of-norway repository folder

cores

Integer specifying number of words longer than six letters in a document

id

Character string specifying id of the file to read into R.

Value

a object of class corpus containing the speeches specified by the ids value. See quanteda for details.

See Also

quanteda

Examples

1
2
3
test <- ton_corpus(tonFolder = "../talk-of-norway/", ids = c("tale000005", "tale000006"))
summary(test)
quanteda::docnames(test)

martigso/tonR documentation built on May 21, 2019, 12:38 p.m.