Learn R Programming

WikiSocio (version 0.7.0)

corpus_page_data: Adding page data to a page corpus

Description

Adding page data to a page corpus

Usage

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

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

Run the code above in your browser using DataLab