[Raster-commits] r255 - pkg/raster/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Feb 7 12:46:16 CET 2009


Author: rhijmans
Date: 2009-02-07 12:46:16 +0100 (Sat, 07 Feb 2009)
New Revision: 255

Modified:
   pkg/raster/R/Overlay.R
Log:


Modified: pkg/raster/R/Overlay.R
===================================================================
--- pkg/raster/R/Overlay.R	2009-02-07 11:18:28 UTC (rev 254)
+++ pkg/raster/R/Overlay.R	2009-02-07 11:46:16 UTC (rev 255)
@@ -35,8 +35,9 @@
 		if (dataContent(rasters[[i]]) != 'all') {inram <- FALSE} 
 	}	
 	
+	vallist <- list()
+
 	if ( inram ) {
-		vallist <- list()
 		for (i in 1:length(rasters)) {
 			vallist[[i]] <- values(rasters[[i]])
 			clearValues(rasters[[i]])



More information about the Raster-commits mailing list