View source: R/RewindReadapt.R
Get the value in column col that is in the row whose timeCol timestamp is closest but prior to time from table.
1 2 | getClosestToTime(cn, table, time, col, timeCol = "time", prior = T,
secondaryOrder = NULL)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.