sdists.center | R Documentation |
Find centroid sequences among a collection of sequences.
sdists.center(x, d = NULL, method = "ow", weight = c(1, 1, 0, 2),
exclude = c(NA, NaN, Inf, -Inf), FUN = NULL, ...,
unique = FALSE)
x |
a list (of vectors) of a vector of character. |
d |
a matrix or an object of class |
method |
argument to |
weight |
argument to |
exclude |
argument to |
FUN |
a function to rank distances. |
... |
additional arguments to |
unique |
a logical specifying whether to return a unique set of sequences. |
This function provides a wrapper to computing the distances among
the sequences in x
, unless d
is supplied, and the
subsequent selection of a set of centroid sequences with minimum
sum of distances to any other sequence.
A subset of x
.
Christian Buchta
sdists
for distance computation.
x <- c("ABCD", "AD", "BCD", "ACF", "CDF", "BC")
sdists.center(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.