bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Submission for GNU APL Bits_and_Pieces directory


From: Louis Chretien
Subject: Re: [Bug-apl] Submission for GNU APL Bits_and_Pieces directory
Date: Mon, 29 Jun 2015 07:41:46 -0400


On 2015-06-29, at 06:05, Juergen Sauermann <address@hidden> wrote:

Hi Alex,

thanks for offering this. I would change a few things to make that code even more useful:

- make the separator an (ideally optional) left argument of ReadTableData.
  Many data files are written in CSV (comma separated values) format which uses comma instead of space,

I would also add Tab Delimited, a very common format

- and maybe make it work for > 2 columns (by guessing the number of columns from the first line in the file).

May I suggest counting the number of delimiters + 1 in the line, as the number of columns?

Also, some programs produced “Quoted Data” in CSV files, to get around the fact that data may contain commas. Like this:

“Item 1”,”Item 2 has a , in it”,”Item 3”

A bit tougher to parse…


/// Jürgen



On 06/27/2015 11:26 PM, address@hidden wrote:
Hi Bug-apl,
I am soliciting feedback (as per the process) of the attached APL code that will take a file  that has a layout of two columns (space separator) and return a matrix.

-Alex



---
Louis Chrétien





reply via email to

[Prev in Thread] Current Thread [Next in Thread]