View source: R/sequence-analysis-audit.R
| compare_sequence_analysis_results | R Documentation |
Compares structural contracts and recoverable provenance from two analysis objects. This helper is intended for regression checks, sensitivity analyses, and reproducibility audits; it does not select a statistically or substantively "best" analysis.
compare_sequence_analysis_results(
x,
y,
tolerance = 1e-08,
compare_values = FALSE
)
x, y |
Two analysis objects. |
tolerance |
Numerical comparison tolerance. |
compare_values |
Logical; when |
An object of class gp3_sequence_analysis_comparison containing
per-field comparisons, both audits, optional whole-object comparison, and
an overall equality flag.
sequences <- data.frame(
sequence_id = rep(c("s1", "s2", "s3"), each = 3L),
sequence_order = rep(1:3, times = 3L),
state = c(
"A", "B", "C",
"A", "B", "B",
"C", "B", "A"
)
)
d1 <- compute_sequence_distance(
sequences,
method = "levenshtein"
)
d2 <- compute_sequence_distance(
sequences,
method = "levenshtein"
)
compare_sequence_analysis_results(d1, d2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.