Compute a pairwise distance matrix between sequences using stringdist.
compute_distance(
sequences,
method = c("hamming", "lv"),
trim_3prime = NULL,
quiet = TRUE,
return_type = c("dist", "matrix")
)A dist object or matrix of pairwise distances
A named character vector of sequences
Distance method: "hamming" or "lv" (Levenshtein). Default is "hamming".
Optional position to trim sequences from 3' end
Logical. Suppress messages. Default is TRUE.
One of "dist" (default) or "matrix"
igDistance for more distance options