[R] How to use complicated FUN in apply ?

Peter Malewski y0004379 at tu-bs.de
Fri Aug 4 14:19:30 CEST 2000


On Fri, 4 Aug 2000, José Ernesto Jardim wrote:

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

apply( data, 2, function(x)-n/2*log(x) )

...perhaps helps
P.




** To YOU I'm an atheist; to God, I'm the Loyal Opposition. Woody Allen **
P.Malewski					Tel.: 0531 500965
Maschplatz 8					Email: P.Malewski at tu-bs.de
************************38114 Braunschweig********************************

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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