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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Mar 10 02:19:28 CET 2009


Author: rhijmans
Date: 2009-03-10 02:19:27 +0100 (Tue, 10 Mar 2009)
New Revision: 337

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


Modified: pkg/raster/R/modal.R
===================================================================
--- pkg/raster/R/modal.R	2009-03-10 01:14:40 UTC (rev 336)
+++ pkg/raster/R/modal.R	2009-03-10 01:19:27 UTC (rev 337)
@@ -11,7 +11,7 @@
 	
 	
 setMethod('modal', signature(x='ANY'), 
-function(x, ..., ties='random', na.rm=TRUE) {
+function(x, ..., ties='random', na.rm=FALSE) {
 #partly based on http://wiki.r-project.org/rwiki/doku.php?id=tips:stats-basic:modalvalue
 	if (!ties %in% c('lowest', 'highest', 'NA', 'random')) {
 		stop("ties should be: 'lowest', 'highest', 'NA', or 'random'")



More information about the Raster-commits mailing list