Hi everyone. What's going on here?
> a <- matrix(1:4,2,2) > a [,1] [,2] [1,] 1 3 [2,] 2 4 > apply(a,2,sum) [1] 3 7 > apply(a,2,"+") [,1] [,2] [1,] 1 3 [2,] 2 4 > apply(a,1,"+") [,1] [,2] [1,] 1 2 [2,] 3 4 > help(apply) says that "+" should be quoted but is otherwise silent on unary operators. I don't understand apply() here at all. anyone? -- Robin Hankin, Lecturer, School of Geography and Environmental Science Tamaki Campus Private Bag 92019 Auckland New Zealand [EMAIL PROTECTED] tel 0064-9-373-7599 x6820; FAX 0064-9-373-7042 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help