[adegenet-commits] r539 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jan 22 19:12:30 CET 2010


Author: jombart
Date: 2010-01-22 19:12:30 +0100 (Fri, 22 Jan 2010)
New Revision: 539

Modified:
   pkg/R/dapc.R
Log:
fixed standardisation of loadings.


Modified: pkg/R/dapc.R
===================================================================
--- pkg/R/dapc.R	2010-01-22 18:06:48 UTC (rev 538)
+++ pkg/R/dapc.R	2010-01-22 18:12:30 UTC (rev 539)
@@ -81,7 +81,7 @@
             if(temp < 1e-12) return(rep(0, length(x)))
             return(x*x / temp)
         }
-        res$var.contr <- t(apply(res$var.contr, 1, f1))
+        res$var.contr <- t(apply(res$var.contr, 2, f1))
     }
 
     class(res) <- "dapc"



More information about the adegenet-commits mailing list