View source: R/integrate_changes.R
| integrate_changes | R Documentation |
integrate_changes takes the results of manual image comparison using
the compare_images Shiny app and integrates them into the data
frame of image matches produced by identify_matches or
confirm_matches. Matches whose status was confirmed as either
"match" or "no match" will have their value in the match field updated
accordingly, and will additionally receive a TRUE value for a new confirmed
field which integrate_changes adds. Matches whose status was not
confirmed will have their match value unchanged, and will received a
confirmed value of FALSE. Matches which were highlighted using the in-app
interface will receive a TRUE value for a new highlight field.
integrate_changes(result, change_table)
result |
A data frame produced by |
change_table |
A data frame produced by |
The original data frame given in the result argument, with three
changes: 1) matches which were confirmed as "match" or "no match" will have
their value in the match field updated accordingly; 2) a confirmed field
will be added if not already present, and matches which were confirmed will
receive a value of TRUE (others will be FALSE); and 3) a highlight field
will be added with a value of TRUE for matches highlighted using the in-app
interface and FALSE otherwise.
## Not run:
# Setup
sigs <- create_signature(test_urls)
matches <- match_signatures(sigs)
result <- identify_matches(matches)
# Use compare_images to manually verify match status
change_table <- compare_images(result)
# Then integrate the changes into `result`
result <- integrate_changes(result, change_table)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.