readWiki: Read Pages from Wikipedia

Description Usage Arguments Value Examples

View source: R/readWiki.R

Description

Downloads pages from Wikipedia and extracts some meta information with functions from the package WikipediR. Creates a textmeta object including the requested pages.

Usage

1
2
3
4
5
6
readWiki(
  category,
  subcategories = TRUE,
  language = "en",
  project = "wikipedia"
)

Arguments

category

character articles of which category should be downloaded, see pages_in_category, argument categories

subcategories

logical (default: TRUE) should subcategories be downloaded as well

language

character (default: "en"), see pages_in_category

project

character (default: "wikipedia"), see pages_in_category

Value

textmeta object

Examples

1
2
3
## Not run: corpus <- readWiki(category="Person_(Studentenbewegung)",
subcategories = FALSE, language = "de", project = "wikipedia")
## End(Not run)

tosca documentation built on Oct. 28, 2021, 5:07 p.m.