Learn R Programming

LexisNexisTools (version 0.2.2)

lnt_diff: Display diff of similar articles

Description

This function is a wrapper for diffPrint. It is intended to help performing a manual assessment of the difference between highly similar articles identified via lnt_similarity.

Usage

lnt_diff(x, min, max, n = 25, output_html = FALSE, ...)

Arguments

x

lnt_sim object as returned by lnt_similarity.

min

Minimum value of rel_dist to include in diff.

max

Maximum value of rel_dist to include in diff.

n

Size of displayed sample.

output_html

Set to TRUE to output html code, e.g. to use for knitting an rmarkdown document to html. Chunk option must be set to results='asis' in that case.

...

Currently not used.

Examples

Run this code
# NOT RUN {
# Test similarity of articles
duplicates.df <- lnt_similarity(LNToutput = lnt_read(lnt_sample()),
                                threshold = 0.95)

lnt_diff(duplicates.df, min = 0.18, max = 0.30)
# }

Run the code above in your browser using DataLab