Description Usage Arguments Value

View source: R/page_distance.R

Giving the distance beetween each revisions

1 | ```
page_distance(revs, mode = "jaccard_similarity")
``` |

`revs` |
A character vector containing all the revisions of the page. See |

`mode` |
The name of a - 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 |

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.