getClosestToTime: Get a value from a time

Description Usage Arguments

View source: R/RewindReadapt.R

Description

Get the value in column col that is in the row whose timeCol timestamp is closest but prior to time from table.

Usage

1
2
getClosestToTime(cn, table, time, col, timeCol = "time", prior = T,
  secondaryOrder = NULL)

Arguments

cn

An open RODBC connection

table

The table name

time

The time the entry should be closest but prior to/after

col

The column of the entry to return

timeCol

The column where the time stamp to compare is.

prior

If the compared value must be prior to (T) or after (F)

secondaryOrder

A secondary column to order on.


mickash/Adaptive-Bayesian-Networks documentation built on Nov. 14, 2019, 12:14 a.m.