Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • This works fine on my actual data as long as I add the decimal points into the script. Thanks! Commented Jun 21, 2015 at 14:38
  • @Asfound Ok, I edited my answer to also support decimal points. Commented Jun 21, 2015 at 14:43
  • Hang on, this will fail if there is a negative value as the last (odd) field. Commented Jun 21, 2015 at 14:47
  • @terdon It fails if there are an odd number of columns, yes. But there are either exactly 6 columns, or "inifinitely many", and "infinitely many" is not an odd number. :) Commented Jun 21, 2015 at 14:50
  • The OP said that there can be "up to 40 columns" :( Commented Jun 21, 2015 at 14:51