rtimes: Time-units synchronization

Description Usage Arguments Value Author(s) Examples

Description

Unique observations in time-series replicates are excluded

Usage

1
rtimes(x, only.dup = TRUE)

Arguments

x

multilevel ecological data series containing a column of time units, or numeric vector with names representing the time units.

only.dup

logical. Extract only duplicated times. If TRUE then unique times are replaced with NA. If all computed times are unique then this argument is ignored.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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))


Search within the BIOdry package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.