[R] Naming rows/columns in a 3 dimensional array/dataframe

2007-07-31 Thread Garavito,Fabian
Can I assign names to rows/columns in a i x k x j matrix / dataframe? This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any

Re: [R] Naming rows/columns in a 3 dimensional array/dataframe

2007-07-31 Thread Marc Schwartz
On Tue, 2007-07-31 at 19:03 +0100, Garavito,Fabian wrote: Can I assign names to rows/columns in a i x k x j matrix / dataframe? You can use an array: ARR - array(1:18, c(3, 3, 3), dimnames = list(LETTERS[1:3], LETTERS[4:6], LETTERS[7:9])) ARR , , G D E F A 1 4 7 B 2 5 8 C 3 6