Login  Register

Re: Results tablw manipulation

Posted by Michael Schmid on Jul 16, 2010; 3:02pm
URL: http://imagej.273.s1.nabble.com/Results-tablw-manipulation-tp3687576p3687580.html

Hi Andrew,

oops, sorry, a person of my age one should be able to read an English  
text and find out the difference between 'rows' and 'columns'...

As far as I can see, the getColumnHeadings() method of ResultsTable  
is only accessible via Java (or JavaScript). Unless one knows the  
column headings in advance, one can't simply read the ResultsTable  
and create a new one from it.
The only way using a macro that I see would be writing the  
ResultsTable to a file, closing the table, and then reading the file;  
breaking it up into lines and cells, and populating a new  
ResultsTable with the values, omitting the unwanted columns.

Michael
________________________________________________________________

On 16 Jul 2010, at 13:28, Andrew James Bell wrote:

> Hi,
>
> I'm interester is either via the user interface or in a macro.
>
> Thank you for your reply, but I was asking about coloumns. As far  
> as I am aware, these all deal with rows.
>
> Andrew