clean_wikitext: Cleaning wikitext function

Description Usage Arguments Value Examples

View source: R/clean_wikitext.R

Description

Cleaning wikitext function

Usage

1
clean_wikitext(revs, locale = "fr")

Arguments

revs

A character vector containing the revisions to be cleaned

locale

For stringr and tm functions, locale parameter - very important to specify correctly.

Value

The revs character vector cleaned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(magrittr)

page_revisions("Sociologie") %>%
   page_content(clean = FALSE) %>%
   clean_wikitext()
   
# This example is equivalent to :
page_revisions("Sociologie") %>%
   page_content(clean = TRUE)
   

## End(Not run)

cafeine05/WikiSocio documentation built on Nov. 17, 2018, 10:01 a.m.