[R] transform R function
    lamack lamack 
    lamac_k at hotmail.com
       
    Wed Mar  7 16:29:52 CET 2007
    
    
  
Dear all, Why the transform function does not accept two statistics 
functions?
a = data.frame(matrix(rnorm(20),ncol=2))
transform(a,M.1=mean(X1),M.2=mean(X2)) # does not works
#while:
transform(a,M.1=mean(X1),M2=log(abs(X2))) #works
Best regards
JL
_________________________________________________________________
O Windows Live Spaces é seu espaço na internet com fotos (500 por mês), blog 
e agora com rede social http://spaces.live.com/
    
    
More information about the R-help
mailing list