time_clip: Clip time vector.

View source: R/time_clip.R

time_clipR Documentation

Clip time vector.

Description

The function clips a time vector based on provided limits.

Usage

time_clip(time, limits)

Arguments

time

POSIXct vector, time vector.

limits

POSIXct vector of length two, time limits for clipping.

Value

POSIXct vector, clipped time vector.

Author(s)

Michael Dietze

Examples


## 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)
                     

eseis documentation built on Aug. 10, 2023, 5:08 p.m.

Related to time_clip in eseis...