rtimes {BIOdry} | R Documentation |
Time-units synchronization
Description
Unique observations in time-series replicates are excluded
Usage
rtimes(x, only.dup = TRUE)
Arguments
x |
multilevel ecological data series containing a column of
time units, or |
only.dup |
|
Value
data.frame
object with the initial vector and its time
units.
Author(s)
Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>
Examples
## 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))
[Package BIOdry version 0.9 Index]