copy to/from clip/paste board of results table

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

copy to/from clip/paste board of results table

karo03
Hi,
I am on MacOSX and like it for quick tests to copy from the Results Table to clipboard to import the data into R (y<-read.table(file=pipe("pbpaste"),header=TRUE), under Windows I think it is y<-readClipboard()).

Seemingly the column headers are only copied if I Select all from the Results Table, not if I copy only some rows, of course, Results->Options…->Copy Column Header is set!

Is this intended?

By the way, with option Copy Column Header there is copied one row more, which is not reflected in the ImageJ message for copying.

Regards
Karsten
[hidden email]





--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: copy to/from clip/paste board of results table

Michael Schmid
Hi Karsten,

to me, it looks like intended behavior:

When copying the whole Results Table, typically one would like the result to be like a file.  Also there, the last line ends with a linefeed character (or, on Windows, CR/LF).

When copying a single line, one typically wants to paste it into a single line of a spreadsheet, e.g. to combine a few selected lines (particles of special interest).  In such a case, the header would be annoying.

If you want to copy a single line including the header, the easiest would be a macro. See
  String.copyResults; //results to clipboard
  resultsString = String.paste; //clipboard to string
  getResultLabel(row) //must be executed in a loop
  String.copy(str) //put the final result to the clipboard

Michael
________________________________________________________________
On Jul 30, 2013, at 09:51, Karsten wrote:

> Hi,
> I am on MacOSX and like it for quick tests to copy from the Results Table to clipboard to import the data into R (y<-read.table(file=pipe("pbpaste"),header=TRUE), under Windows I think it is y<-readClipboard()).
>
> Seemingly the column headers are only copied if I Select all from the Results Table, not if I copy only some rows, of course, Results->Options…->Copy Column Header is set!
>
> Is this intended?
>
> By the way, with option Copy Column Header there is copied one row more, which is not reflected in the ImageJ message for copying.
>
> Regards
> Karsten
> [hidden email]
>
>
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: copy to/from clip/paste board of results table

karo03
Thank you Michael,
the macro idea is good. Still, I think to switch off the option to copy result lines without header is more comprehensible for me.

Karsten

Am 30.07.2013 um 12:32 schrieb Michael Schmid <[hidden email]>:

> Hi Karsten,
>
> to me, it looks like intended behavior:
>
> When copying the whole Results Table, typically one would like the result to be like a file.  Also there, the last line ends with a linefeed character (or, on Windows, CR/LF).
>
> When copying a single line, one typically wants to paste it into a single line of a spreadsheet, e.g. to combine a few selected lines (particles of special interest).  In such a case, the header would be annoying.
>
> If you want to copy a single line including the header, the easiest would be a macro. See
>  String.copyResults; //results to clipboard
>  resultsString = String.paste; //clipboard to string
>  getResultLabel(row) //must be executed in a loop
>  String.copy(str) //put the final result to the clipboard
>
> Michael
> ________________________________________________________________
> On Jul 30, 2013, at 09:51, Karsten wrote:
>
>> Hi,
>> I am on MacOSX and like it for quick tests to copy from the Results Table to clipboard to import the data into R (y<-read.table(file=pipe("pbpaste"),header=TRUE), under Windows I think it is y<-readClipboard()).
>>
>> Seemingly the column headers are only copied if I Select all from the Results Table, not if I copy only some rows, of course, Results->Options…->Copy Column Header is set!
>>
>> Is this intended?
>>
>> By the way, with option Copy Column Header there is copied one row more, which is not reflected in the ImageJ message for copying.
>>
>> Regards
>> Karsten
>> [hidden email]
>>
>>
>>
>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Karsten
[hidden email]

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html