rtimes | R Documentation |
Unique observations in time-series replicates are excluded
rtimes(x, only.dup = TRUE)
x |
multilevel ecological data series containing a column of
time units, or |
only.dup |
|
data.frame
object with the initial vector and its time
units.
Wilson Lara <wilarhen@gmail.com> [aut, cre] (<https://orcid.org/0000-0003-3527-1380>), Felipe Bravo <fbravo@pvs.uva.es> [aut] (<https://orcid.org/0000-0001-7348-6695>)
## row names of a vector
fy <- function(y,span){(y - span):y}
x <- c(fy(2005,5),fy(2007,10))
## (not run) Simulating the vector
r <- abs(rnorm(length(x)))
names(r) <- x
## (not run) computing the synchronized times:
rtimes(r,only.dup = TRUE)
## (not run) Extracting only duplicated times:
na.omit(rtimes(r,only.dup = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.