sequence_cor | R Documentation |
Finds correlation between all segments length n of a vector
sequence_cor(vec, n)
vec |
numeric vector to test for possible offset duplicate sequences |
n |
length of duplicate sequence to search for |
Embeds the vector into low-dimensional Euclidean space and then finds correlation between all columns. Pairs of columns with a correlation of 1 are either duplicates or have an offset.
set.seed(42) x <- rnorm(10) x <- c(x, x[1:4] + 2.03) sequence_cor(vec = x, n = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.