The example below illustratesEDIT
In response to episanty's request:
makeRow[ncols_, withNaNs_] := If[withNaNs, RandomSample[Prepend[makeRow[ncols - 1, False], "nan"]], RandomReal[{0, 1}, ncols]]; makeSampleInput[path_, nrows_, ncols_, nnans_] := Export[path, RandomSample[Table[makeRow[ncols, i <= nnans], {i, nrows}]], "TSV"];
Given these helper functions, one can use
makeSampleInput[pathToTSV, 40000, 400, 10];
to create a file at pathToTSV that is comparable to the probleminput file I used for the EXAMPLE below.
EXAMPLE
First some setup:
Now, a data import sequence, as described aboveat the beginning of this post: