Re: [R] a matrix in a seprate window?

From: Prof Brian Ripley <>
Date: Fri 02 Jun 2006 - 16:12:43 EST

On Thu, 1 Jun 2006, H. Paul Benton wrote:

> A very simple one but I cannot figure it out. I have a matrix and I want to
> display it in a seprate window. I would really like it if it worked on both
> linux and windows.

edit.matrix will provide you with a spreadsheet display in a separate window. Unfortunately it is modal: rewriting it to provide an asynchronous data viewer is on my TODO list.

Alternatively, you can write out the matrix to a file and show the file. For example

f <- tempfile()
write.table(as.matrix(hills), file=f, sep="\t")

On linux you would need to use a pager that displayed in a separate window: there are many possible choices (I tend to use emacsclient).

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Fri Jun 02 16:18:43 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 02 Jun 2006 - 18:10:31 EST.

Mailing list information is available at Please read the posting guide before posting to the list.