[Raster-commits] r357 - pkg/raster/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Mar 14 08:53:23 CET 2009


Author: rhijmans
Date: 2009-03-14 08:53:23 +0100 (Sat, 14 Mar 2009)
New Revision: 357

Modified:
   pkg/raster/man/Logic-methods.Rd
   pkg/raster/man/overlay.Rd
   pkg/raster/man/rasterToPoints.Rd
Log:


Modified: pkg/raster/man/Logic-methods.Rd
===================================================================
--- pkg/raster/man/Logic-methods.Rd	2009-03-14 07:10:17 UTC (rev 356)
+++ pkg/raster/man/Logic-methods.Rd	2009-03-14 07:53:23 UTC (rev 357)
@@ -33,8 +33,13 @@
 \examples{
 r <- raster(ncols=10, nrows=10)
 r[] <- runif(ncell(r)) * 10
-r <- r < 3 | r < 6
-r <- !r
+r1 <- r < 3 | r > 6
+r2 <- !r1
+r3 <- r >= 3 & r <= 6
+r4 <- r2 == r3
+r[r>3] <- NA
+r5 <- is.na(r)
+
 }
 
 \keyword{methods}

Modified: pkg/raster/man/overlay.Rd
===================================================================
--- pkg/raster/man/overlay.Rd	2009-03-14 07:10:17 UTC (rev 356)
+++ pkg/raster/man/overlay.Rd	2009-03-14 07:53:23 UTC (rev 357)
@@ -25,9 +25,10 @@
 
 \code{overlay(x, y, ..., fun, filename="", overwrite=FALSE,  filetype='raster', datatype='FLT4S')}
 
-  \item{x, y}{RasterLayer objects}
-  \item{...}{  additional RasterLayer objects and
-  \item{fun}{ the function to be appliepd. This should be a function that takes two numbers as an argument }
+  \item{x}{a RasterLayer object}
+  \item{y}{a RasterLayer object}
+  \item{...}{additional RasterLayer objects and
+  \item{fun}{the function to be appliepd. This should be a function that takes two numbers as an argument }
   \item{filename}{ filename for the output raster. A valid filename must be provided when the data of the input rasters are on disk }
   \item{overwrite}{logical. If \code{TRUE}, existing files will be overwritten}
   \item{filetype}{output file type. Either 'raster', 'ascii' or a supported GDAL 'driver' name see \code{\link[raster]{writeRaster}}}

Modified: pkg/raster/man/rasterToPoints.Rd
===================================================================
--- pkg/raster/man/rasterToPoints.Rd	2009-03-14 07:10:17 UTC (rev 356)
+++ pkg/raster/man/rasterToPoints.Rd	2009-03-14 07:53:23 UTC (rev 357)
@@ -22,8 +22,8 @@
 
 fun should be a simple function returning a logical value
 e.g.:
- fun=function(x){x==1}
- fun=function(x){x>3}
+ \code{fun=function(x){x==1}}
+ \code{fun=function(x){x>3}}
 }
 
 \author{Robert J. Hijmans}



More information about the Raster-commits mailing list