correct_time: Fix jumps and duplicates in TDR time stamps

Description Usage Arguments Details Author(s) Examples

Description

Fix jumps and duplicates in TDR time stamps

Usage

1
correct_time(obj, time_seq = 1, verbose = FALSE)

Arguments

obj

The TDR dataset

time_seq

A variable to use in order to subset obj and extract the time column. The time variable has to be in POSIXct format.

verbose

A logical indicating if the function should be verbose.

Details

Output rows will be chronologically ordered. Table with time stamp and number of replicate of duplicates is returned in attributes, as well as a data frame listing "time jumps".

Author(s)

Simon Wotherspoon, Yves Le Bras

Examples

1
2
3
4
data(exses)
tmp <- rbind(exses$tdr[c(1,1,2), ], exses$tdr[-c(10, 20:30), ])
tmp <- correct_time(tmp)
attr(tmp, "correct_time")

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.