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 at 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