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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
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

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

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,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.