ValueOf: ValueOf

View source: R/TellAbout.R

ValueOfR Documentation

ValueOf

Description

Returns value of a variable at a specified time

Usage

ValueOf(DataFrame, Variable, HHMMSS)

Arguments

DataFrame

A dataframe containing 'Variable' and also 'Time', a POSIX-format time variable used for searching for the desired time.

Variable

A variable in DataFrame. The variable can be in the form DataFrame$TASX or TASX, or "TASX".

HHMMSS

A time in hour-minute-second format (e.g., 134513)

Details

In a dataframe, finds the index corresponding to the specified time and returns the value of the specified variable at that index.

Value

A numeric containing the value of 'Variable' at the specified time.

Author(s)

William Cooper

Examples

ValueOf (RAFdata, ATX, 201100)
ValueOf (RAFdata, "ATX", 201100)
ValueOf (RAFdata, RAFdata$ATX, 201100)

NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.