page_distance: Giving the distance beetween each revisions

Description Usage Arguments Value

Description

Giving the distance beetween each revisions

Usage

1
page_distance(revs, mode = "jaccard_similarity")

Arguments

revs

A character vector containing all the revisions of the page. See page_content function.

mode

The name of a textreuse similarity function :

jaccard_similarity

Evaluate the distance using jaccard similarity

jaccard_dissimilarity

1 - jaccard_similarity

jaccard_bag_similarity

The measure treats revisions as bag of words and not as sequences of words

ratio_of_matches

The ratio beetween the number of items in i that are also in i-1.

For more details, see ?similarity-function after loading textreuse

Value

A numeric vector of length length(revs) - 1. For a given i, page_distance(revs)[i] give the ratio of matches beetween revs[i-1] and revs[i]. For more information about the ratio ot matches, see textreuse package.


cafeine05/WikiSocio documentation built on May 13, 2019, 10:39 a.m.