
Last chance! 50% off unlimited learning
Sale ends in
The function clips a time vector based on provided limits.
time_clip(time, limits)
POSIXct
vector, clipped time vector.
POSIXct
vector, time vector.
POSIXct
vector of length two, time limits for
clipping.
Michael Dietze
## load example data
data(rockfall)
## define limits to clip to
limits <- c(min(rockfall_t) + 10,
max(rockfall_t) - 10)
## clip data set
rockfall_t_clip <- time_clip(time = rockfall_t,
limits = limits)
## compare time ranges
range(rockfall_t)
range(rockfall_t_clip)
Run the code above in your browser using DataLab