[Picante-commits] r66 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed May 21 20:32:50 CEST 2008


Author: skembel
Date: 2008-05-21 20:32:48 +0200 (Wed, 21 May 2008)
New Revision: 66

Modified:
   pkg/R/phylocom.R
Log:
Change phylocom file readers to return data frames instead of matrices

Modified: pkg/R/phylocom.R
===================================================================
--- pkg/R/phylocom.R	2008-05-21 17:57:12 UTC (rev 65)
+++ pkg/R/phylocom.R	2008-05-21 18:32:48 UTC (rev 66)
@@ -10,7 +10,7 @@
 	colnames(x) <- c("plot","abund","id")
     y <- tapply(x$abund, list(x$plot, x$id), sum)
     y[is.na(y)] <- 0
-    y
+    as.data.frame(y)
 }
 
 `matrix2sample` <-



More information about the Picante-commits mailing list