corpus_page_data: Adding page data to a page corpus

Description Usage Arguments Value See Also Examples

View source: R/corpus.R

Description

Adding page data to a page corpus

Usage

1
2
corpus_page_data(method, x, selection = c("nbLinks", "nbContrib",
  "nbRevisions", "percentAnon", "percent10"), domain = "fr")

Arguments

method

The method employed to get data into the corpus.

variables

For each page of the corpus, return variables specified in selection

x

A character vector created with corpus_page_create

selection

A character vector giving all the data variables to get in the corpus :

nbLinks

Number of links in the page

nbContrib

Number of contributors who have edited the page at least once

nbRevisions

Number of revisions of the page

percentAnon

Percentage of anonymous contributions

percent10

Percentage of the text due to the 10 % first contributor

domain

The domain where the wiki is located

Value

A data-frame.

See Also

Other corpus functions: corpus_contrib_create, corpus_contrib_data, corpus_contrib_select, corpus_page_create

Examples

1
2
3
# Creating a page corpus with 3 randomly selected page
corpus <- corpus_page_create('random',3)
corpus <- corpus_page_data("variables",corpus)

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