| sfa_deletion_gaps | R Documentation |
Compares two audits of the same region - a reference audit and an audit of a changed item set (items deleted, a short form, a revision) - and reports the content the change strands: the region sentences covered by the reference scale but not by the changed one. Labeling only this delta is what makes a deletion study readable. The changed scale's full gap report mixes newly created gaps with whatever the reference scale already failed to cover, and the pre-existing uncovered mass usually drowns the signal.
sfa_deletion_gaps(reference, reduced, quotes = 3L, top = 8L)
reference |
The reference audit ( |
reduced |
The changed item set's audit, run against the same
region and anchored to |
quotes |
Number of example sentences to return. Default 3, ordered by how far the change strands them (largest increase in nearest-item distance first). |
top |
Number of label terms. Default 8. |
Both audits must be run against the same region with the same filters,
and the changed audit must be anchored to the reference audit's
radius (radius = reference$radius) - otherwise recalibration moves
the yardstick along with the item set and the delta confounds the two.
The function checks both conditions.
A list: n_new (newly uncovered sentences), share_new
(their fraction of the region), coverage_drop
(reference$coverage - reduced$coverage), terms (distinctive terms
of the newly uncovered content against the still-covered content),
and quotes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.