Re: [R] colouring a table, data.frame or matrix in an interactive R session

2012-01-08 Thread Vincent Zoonekynd
On 7 January 2012 19:48, drflxms drfl...@googlemail.com wrote: as I am dealing with complex confusion matrices, I wonder whether there might be a way to colour text/tabular data in R. I.e. imagine highlighting the true positive values or certain classes in a table. The colorout package does

Re: [R] Difference across the Nth dimension of an array

2012-01-08 Thread Vincent Zoonekynd
On 9 January 2012 08:53, Phil Wiles philip.wi...@gmail.com wrote: I have a multidimensional array - in this case with 4 dimensions of x,y,z and time.  I'd like to take the time derivative of this matrix, i.e. perform the diff operator along dimension number 4. apply can do that, but you may