Login  Register

Re: run("New... ", "name="+name+" type=Table");

Posted by Wayne Rasband on Jun 06, 2008; 10:07pm
URL: http://imagej.273.s1.nabble.com/run-New-name-name-type-Table-tp3696007p3696008.html

The File>Import>Results command in the 1.41e daily build can open tab
and comma delimited tables containing non-numeric data. Non-numeric
tables are opened in a separate window since the Results table, except
for the "Label" column, is limited to numeric data. The
File>Import>Results command is implemented by the macro at

     http://rsb.info.nih.gov/ij/source/macros/ImportResultsTable.txt

-wayne

On Jun 5, 2008, at 12:14 PM, Simon Roussel wrote:

> Dear All,
> In a macro, one can construct a "table text file", with column
> headings and
> then print texts (Unless the Result table which accepts text only in
> the
> first column with a "Label" heading), usin things like:
>    run("New... ", "name="+f+" type=Table");
>    print(f,"\\Headings:<tab-delimited list>");
>    print(f, "something \t etc");
>
> From the "news" below, I expected to be able to save and later reopen
> my
> table, with columns, headings and text:
>
> 1.38r, 11 May 2007
>     * Added the File>Import>Results command, which opens an ImageJ
> Results
> table, or any tab or comma-delimited text file. This command is based
> on
> Jerome Mutterer's Import_Results_Table macro.
>
> But, if I do File>Import>Results, texts are replaced by "NaN", and if
> I do
> File>Import>Text File, I do not get "columns" with headings, but only a
> simple text file, with the headings in the first line.
>
> Did I missed something ? Is there a way to reopen my text table
> containing
> texts with columns and headings ?
>
> Thanks
> Simon
>