match.tol | R Documentation |
Determine which observations in a regular time series match observation in an original irregular one, accepting a given tolerance window in the time-scale. This function is internally used for regulation (functions regul()
, regul.screen()
and regul.adj()
match.tol(x, table, nomatch=NA, tol.type="both", tol=0)
x |
a numerical vector containing seeked values (time-scale of the regular series) |
table |
a numerical vector containing initial times to look for match in |
nomatch |
the symbol tu use to flag an entry where no match is found. By default, |
tol.type |
the type of adjustment to use for the time-tolerance: |
tol |
the tolerance in the time-scale to determine if a value in |
a vector of the same length of x
, indicating the position of the matching observations in table
Philippe Grosjean (phgrosjean@sciviews.org), Frédéric Ibanez (ibanez@obs-vlfr.fr)
regul
, regul.screen
, regul.adj
X <- 1:5
Table <- c(1, 3.1, 3.8, 4.4, 5.1, 6)
match.tol(X, Table)
match.tol(X, Table, tol=0.2)
match.tol(X, Table, tol=0.55)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.