get_lag | R Documentation |
A small piece (b2) is matched to a much larger piece (b1). The lag gives the index location of the best match of b2 in b1.
This function is essentially just a wrapper for my_ccf
, but adds a plot of the result for convenience.
get_lag(b1, b2, negperc = 10)
b1 |
vector of striation marks (assuming equidistance between values) |
b2 |
(smaller) vector of striation marks |
negperc |
amount of lead that b2 can have compared to b1 |
list of lag and correlation achieved. The plot shows b2 on b1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.