dajohnst <dajohnston <at> ucdavis.edu> writes:

> Why not use an array?
> 
> An array can be indexed in as many dimensions as you would like, and do not
> require any extra packages.  
> 
> x = array(1:27, dim = c(3, 3, 3))
> x
> x[1, , ]
> x[ , 1, ]
> x[ , , 1]
> 

  An array is certainly the right structure to hold a 'data cube' in R.
However, I think the original poster is looking for something similar
to View()  that would allow them to navigate interactively
through the rows, columns, and slices of a 3D array. I'm not aware of 
such an interface ...  If I were going to try to *develop* this I would
probably try to figure out how to use the tkTable widget 
<http://tktable.sourceforge.net/tktable/doc/tkTable.html>, but this
sounds like a non-trivial project ...

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to