getIndex: getIndex

Description Usage Arguments Details Value Author(s) Examples

Description

Returns the index in 'Time' matching HHMMSS

Usage

1
getIndex(Time, HHMMSS)

Arguments

Time

A POSIXct-format vector or a data.frame containing a similar variable 'Time"

HHMMSS

An integer representing time in HHMMSS format

Details

Find the index in a POSIXct time variable that corresponds to a specified time in HHMMSS format. Returns -1 if the requested time is outside the range in 'Time'

Value

A numeric index in the Time vector corresponding to the requested time, or -1 if there is no match.

Author(s)

William Cooper

Examples

1
idx <- getIndex (RAFdata, 201130)

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