corpus_page_create: Creating a page corpus

Description Usage Arguments Value See Also Examples

View source: R/corpus.R

Description

Creating a page corpus

Usage

1
corpus_page_create(method, x, limit = "max", domain = "fr")

Arguments

method

The method employed to create the corpus.

category

Every page in the category x is included to the corpus

random

Select x random page

xpath

x is a vector containing in first position the URL of one page, and in second position the wpath request to apply to this URL. Will return a list of words, wich are the names of pages if the xpath request is writed correctly

x

The pointer of the method.

limit

If not 'max', then an integer giving the length of the corpus. Useless for random method.

domain

The domain where the wiki is located

Value

A character vector.

See Also

corpus_contrib_create for contributors corpus, corpus_page_data to put data into the corpus you made with this function

Other corpus functions: corpus_contrib_create, corpus_contrib_data, corpus_contrib_select, corpus_page_data

Examples

1
2
# Creating a page corpus formed by 3 random selected page
corpus_page_create('random',3)

WikiSocio documentation built on May 29, 2017, 10:42 p.m.