Skip to content
Prev 206980 / 398503 Next

min and max operations on matrix

Try this:
[,1] [,2] [,3]
[1,]   -1    0    1
[2,]    1   -1    0
[3,]    1    0   -1

You can avoid the transpose using plyr:
Var1  1  2  3
   1 -1  0  1
   2  1 -1  0
   3  1  0 -1
On Wed, Jan 20, 2010 at 11:57 AM, <Murali.MENON at fortisinvestments.com> wrote: