The problem with a general addon tables/csv is that it has to handle all sorts of edge cases, this has a significant overhead and as Bill has pointed out, if you can rely on your data being well-formed then using the tables/csv is definitely overkill. Bill's suggestion will work great if you can rely on the fact that you have a numeric csv with no negatives. If that is not the case then the following might work better:
_99 ". ([: ];._2 ,&',');._2 freads datloc,'chunk1.csv' For example compare the results of require 'tables/csv' ".;._2 makecsv _2+ 12 4 ?.@$ 5 to _99 ". ([: ];._2 ,&',');._2 makecsv _2+ 12 4 ?.@$ 5 On Tue, Nov 12, 2013 at 4:12 PM, Scott Locklin <[email protected]>wrote: > "bill lam-2" wrote: > > > ".;._2 a > > 1 2 3 > > 4 5 6 > > > Oh chrikey, that is a whole lot better (and a lot easier than writing a C > gizmo to do this). Thank you for your patience in showing me that one. > > > -SL > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
