BlueMountainCapital/FSharp.DataFrame — pull request #30 by buybackoff (2013-10-09 07:50:13+00:00)
Title: Currently failing test for frame left and right join with nearest smaller or greater option

Have been walking through [tutorial.fsx] (http://bluemountaincapital.github.io/FSharp.DataFrame/tutorial.html#timeseries) and found that on the line 400 and below there is an incorrect description of expected frame after join.

*Original:*
// All values are available - for each day, we find the nearest smaller
// time in the frame indexed by later times in the day
let obsDaysPrev =
(daysFrame, obsFrame)
||> Frame.align JoinKind.Left Lookup.NearestSmaller

In fact, the first point of the second column must be missing here.

*All values in the second column must be present in the second case:*
let obsDaysNext =
(daysFrame, obsFrame)
||> Frame.align JoinKind.Left Lookup.NearestGreater

But the last value in the second column is missing.

**I have added a test that fails now, but should pass.** It fails only with options "JoinKind.Left Lookup.NearestGreater", all other combinations of options work as expected.

I cannot trace the original issue. Could you please try the test on your side and if it also fails then add it and find the original problem?

(I am using F# 3.0, VS 2012)