Learn R Programming

bioRad (version 0.5.1)

filter_vpts: Time selection in a time series of vertical profiles ('vpts')

Description

Time selection in a time series of vertical profiles ('vpts')

Usage

filter_vpts(x, min, max, nearest)

Arguments

x

A vpts object.

min

Minimum datetime to be included. POSIXct value or character string convertable to POSIXct.

max

Maximum datetime to be included. POSIXct value or character string convertable to POSIXct.

nearest

If specified, min and max are ignored and the profile nearest to the specified datetime is returned. POSIXct value or charater string convertable to POSIXct.

Value

An object of class 'vpts', or an object of class 'vp' if argument nearest is specified.

Details

returns profiles for which min <= timestamp profile < max.

Examples

Run this code
# NOT RUN {
# load example vertical profile time series:
data(example_vpts)
example_vpts

# select profiles later than 02-Sep-2016
filter_vpts(example_vpts, min = "2016-09-02")

# select the profile nearest to 2016-09-01 03:00 UTC:
filter_vpts(example_vpts, nearest = "2016-09-01 03:00")

# select profiles between than 1 and 3 UTC on 02-Sep-2016:
filter_vpts(example_vpts, min = "2016-09-02 01:00", max = "2016-09-02 03:00")
# }

Run the code above in your browser using DataLab