[R] How to use complicated FUN in apply ?

José Ernesto Jardim ernesto at ipimar.pt
Fri Aug 4 13:18:13 CEST 2000


Hi everyone

I'm trying to use

sigma2.mat<-apply(ri.mat,2,'-n/2*log(sum(ri.mat^2)/n)')

but it's not working.

Is it wrong to use that kind of FUN in apply ? or am I doing something
wrong ?!

Thank's

ernesto

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list