selectTime: selectTime

Description Usage Arguments Details Value Author(s)

Description

Given a RANADU-convention data.frame or tibble, this function returns a subset in a specified range of times.

Usage

1
selectTime(.d, StartTime, EndTime)

Arguments

.d

A data.frame or tibble that follows RANADU conventions. It should contain a POSIXCT-format variable named "Time".

StartTime

An initial time in HHMMSS format (e.g., 124500). The default is 0.

EndTime

An ending time in HHMMSS format. Default = 400000.

Details

The function uses the routine setRange but, instead of returning a set of indices to use when subsetting the data.frame, it returns a new subsetted data.frame. This is suitable for use in pipes like D

Value

A subset tibble or data.frame restricted to the specified time range. Limits are inclusive.

Author(s)

William Cooper


WilliamCooper/Ranadu documentation built on July 10, 2019, 12:40 a.m.