[Raster-commits] r221 - in pkg/raster: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jan 30 10:16:33 CET 2009


Author: rhijmans
Date: 2009-01-30 10:16:32 +0100 (Fri, 30 Jan 2009)
New Revision: 221

Modified:
   pkg/raster/R/conversion.R
   pkg/raster/R/raster.create.R
   pkg/raster/R/readSurfer.R
   pkg/raster/R/set.R
   pkg/raster/man/Arith-methods.Rd
   pkg/raster/man/Compare-methods.Rd
   pkg/raster/man/Math-methods.Rd
   pkg/raster/man/PolygonsToRaster.Rd
   pkg/raster/man/Summary-methods.Rd
   pkg/raster/man/adjacency.Rd
   pkg/raster/man/aggregate.Rd
   pkg/raster/man/bbox.Rd
   pkg/raster/man/calc.Rd
   pkg/raster/man/cell.values.Rd
   pkg/raster/man/change.extent.Rd
   pkg/raster/man/classes.Rd
   pkg/raster/man/coerce.Rd
   pkg/raster/man/compare.Rd
   pkg/raster/man/cover.Rd
   pkg/raster/man/create.raster.Rd
   pkg/raster/man/data.Rd
   pkg/raster/man/get.Rd
   pkg/raster/man/mCalc.Rd
   pkg/raster/man/map.Rd
   pkg/raster/man/overlay.Rd
   pkg/raster/man/project.Rd
   pkg/raster/man/properties.Rd
   pkg/raster/man/raster-package.Rd
   pkg/raster/man/rasterdistance.Rd
   pkg/raster/man/resample.Rd
   pkg/raster/man/set.Rd
   pkg/raster/man/setValues.Rd
   pkg/raster/man/values.Rd
Log:


Modified: pkg/raster/R/conversion.R
===================================================================
--- pkg/raster/R/conversion.R	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/R/conversion.R	2009-01-30 09:16:32 UTC (rev 221)
@@ -42,12 +42,12 @@
 }	
 setMethod('asRasterLayer', signature(object='missing',index='missing'), 
 	function(object){
-		return(newRaster())
+		return(raster())
 	}
 )
 setMethod('asRasterLayer', signature(object='character',index='missing'), 
 	function(object){
-		r <- newRaster()
+		r <- raster()
 		if (object == 'runif') {
 			r <- setValues(r, runif(ncell(r)))
 		} else if (object == 'seq') {
@@ -97,7 +97,7 @@
 
 setMethod('asRasterLayer', signature(object='SpatialPixels', index='numeric'), 
 	function(object, index){
-		raster <- newRaster()
+		raster <- raster()
 		raster <- setBbox(raster, getBbox(object))
 		raster <- setProjection(raster, object at proj4string)
 		raster <- setRowCol(raster, object at grid@cells.dim[2], object at grid@cells.dim[1])

Modified: pkg/raster/R/raster.create.R
===================================================================
--- pkg/raster/R/raster.create.R	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/R/raster.create.R	2009-01-30 09:16:32 UTC (rev 221)
@@ -18,6 +18,12 @@
 
 
 newRaster <- function(xmn=-180, xmx=180, ymn=-90, ymx=90, nrows=180, ncols=360, projstring="+proj=longlat +datum=WGS84") {
+	warning("'newRaster' is deprecated. Use 'raster' instead")
+	return(raster(xmn, xmx, ymn, ymx, nrows, ncols, projstring))
+}
+
+
+raster <- function(xmn=-180, xmx=180, ymn=-90, ymx=90, nrows=180, ncols=360, projstring="+proj=longlat +datum=WGS84") {
 	bb <- newBbox(xmn, xmx, ymn, ymx)
 	rs <- rasterFromBbox(bb, nrows=nrows, ncols=ncols)
 	rs <- setProjection(rs, projstring)
@@ -84,7 +90,7 @@
 	if (yx < 0) { ndecs <- 9 } else  { ndecs <- 8 }
 	yx <- as.numeric( substr( as.character(yx), 1, ndecs) )
 
-	raster <- newRaster(ncols=nc, nrows=nr, xmn=xn, ymn=yn, xmx=xx, ymx=yx, projstring="")
+	raster <- raster(ncols=nc, nrows=nr, xmn=xn, ymn=yn, xmx=xx, ymx=yx, projstring="")
 	raster <- setFilename(raster, filename)
 	raster <- setDatatype(raster, "numeric")
 	
@@ -153,7 +159,7 @@
 		else if (ini[i,2] == "PROJECTION") {projstring <- ini[i,3]} 
     }  
 
-    raster <- newRaster(ncols=nc, nrows=nr, xmn=xn, ymn=yn, xmx=xx, ymx=yx, projstring=projstring)
+    raster <- raster(ncols=nc, nrows=nr, xmn=xn, ymn=yn, xmx=xx, ymx=yx, projstring=projstring)
 	raster <- setFilename(raster, filename)
 	raster at file@driver <- "raster"
 

Modified: pkg/raster/R/readSurfer.R
===================================================================
--- pkg/raster/R/readSurfer.R	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/R/readSurfer.R	2009-01-30 09:16:32 UTC (rev 221)
@@ -2,7 +2,7 @@
 .readSurfer6 <- function(filename) {
 	con <- file(filename, "rb")
 	id <- readBin(con, "characater", n=1, size=4)
-	r <- newRaster()
+	r <- raster()
 	r at ncols <- readBin(con, "int", n=4, size=2)
 	r at rows <- readBin(con, "int", n=4, size=2)
 	r at bbox@xmin <- readBin(con, "double", n=1, size=8)

Modified: pkg/raster/R/set.R
===================================================================
--- pkg/raster/R/set.R	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/R/set.R	2009-01-30 09:16:32 UTC (rev 221)
@@ -41,7 +41,7 @@
 		stop("it is not allowed to set the filename of the output RasterLayer to that of the input RasterLayer")
 	}
 
-	raster <- newRaster(xmn = xmin(object), xmx = xmax(object), ymn = ymin(object), ymx = ymax(object), nrows=nrow(object), ncols=ncol(object), projstring=projection(object))
+	raster <- raster(xmn = xmin(object), xmx = xmax(object), ymn = ymin(object), ymx = ymax(object), nrows=nrow(object), ncols=ncol(object), projstring=projection(object))
 	raster <- setFilename(raster, filename)
 	
 	if ( length(values) != 1 | ( length(values) == 1 & ncell(raster) == 1) ) {

Modified: pkg/raster/man/Arith-methods.Rd
===================================================================
--- pkg/raster/man/Arith-methods.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/Arith-methods.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -14,7 +14,7 @@
 \author{Robert J. Hijmans \email{r.hijmans at gmail.com}}
 
 \examples{
-r1 <- newRaster(ncols=10, nrows=10)
+r1 <- raster(ncols=10, nrows=10)
 r1 <- setValues(r1, runif(ncell(r1)))
 r2 <- setValues(r1, 1:ncell(r1)) / ncell(r1)
 r3 <- r1 * (r2 - 1 + r1^2 / r2)

Modified: pkg/raster/man/Compare-methods.Rd
===================================================================
--- pkg/raster/man/Compare-methods.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/Compare-methods.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -15,7 +15,7 @@
 
 
 \examples{
-r1 <- newRaster()
+r1 <- raster()
 r1 <- setValues(r1, round(10 * runif(ncell(r1))))
 r2 <- setValues(r1, round(10 * runif(ncell(r1))))
 as(r1, "BasicRaster") == as(r2, "BasicRaster")

Modified: pkg/raster/man/Math-methods.Rd
===================================================================
--- pkg/raster/man/Math-methods.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/Math-methods.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -15,7 +15,7 @@
 \author{Robert J. Hijmans \email{r.hijmans at gmail.com}}
 
 \examples{
-r1 <- newRaster()
+r1 <- raster()
 r1 <- (setValues(r1, runif(ncell(r1))) - 0.5 ) * 10
 r2 <- abs(r1)
 r3 <- sqrt(r1)

Modified: pkg/raster/man/PolygonsToRaster.Rd
===================================================================
--- pkg/raster/man/PolygonsToRaster.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/PolygonsToRaster.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -36,7 +36,7 @@
 cds3 <- rbind(c(-180,-20), c(-140,-60), c(-60,-20), c(-140,55), c(-180,-20))
 
 polys <- SpatialPolygons(list(Polygons(list(Polygon(cds1)), 1), Polygons(list(Polygon(cds2)), 2), Polygons(list(Polygon(cds3)), 3) ))
-r <- newRaster()
+r <- raster()
 r <- polygonsToRaster(polys, r)
 #plot(r)
 #plot(polys, add=T)

Modified: pkg/raster/man/Summary-methods.Rd
===================================================================
--- pkg/raster/man/Summary-methods.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/Summary-methods.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -17,7 +17,7 @@
 \author{Robert J. Hijmans \email{r.hijmans at gmail.com}}
 
 \examples{
-r1 <- newRaster()
+r1 <- raster()
 r1 <- setValues(r1, runif(ncell(r1)))
 r2 <- 2 * r1 * r1
 r3 <- sqrt(r1) * 5

Modified: pkg/raster/man/adjacency.Rd
===================================================================
--- pkg/raster/man/adjacency.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/adjacency.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -29,7 +29,7 @@
 \author{Jacob van Etten \email{jacobvanetten at yahoo.com}}
 
 \examples{
-	rs <- newRaster(nrows=10, ncols=10)
+	rs <- raster(nrows=10, ncols=10)
 	adj <- adjacency(raster = rs, fromCells = c(1,30,55,72,100), toCells = c(1:ncell(rs)), directions=4) 
 	
 	#Visualize the outcome in a raster

Modified: pkg/raster/man/aggregate.Rd
===================================================================
--- pkg/raster/man/aggregate.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/aggregate.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -35,7 +35,7 @@
 \author{Robert J. Hijmans \email{r.hijmans at gmail.com}}
 
 \examples{
-	r <- newRaster()
+	r <- raster()
 	r <- setValues(r, runif(ncell(r)))
 	ra <- Aggregate(r, fact=10, fun=max)
 	rd <- disaggregate(ra, 3)

Modified: pkg/raster/man/bbox.Rd
===================================================================
--- pkg/raster/man/bbox.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/bbox.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -43,7 +43,7 @@
   
 \author{Robert J. Hijmans  \email{r.hijmans at gmail.com}}
 \examples{
-	rs <- newRaster()
+	rs <- raster()
 	bb <- newBbox(-10, 10, -20, 20)
 	rs <- setBbox(rs, bb, keepres=TRUE)
 	rs <- changeBbox(rs, ymx = 90)

Modified: pkg/raster/man/calc.Rd
===================================================================
--- pkg/raster/man/calc.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/calc.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -51,7 +51,7 @@
 
 \examples{
 
- r <- newRaster(ncols=36, nrows=18)
+ r <- raster(ncols=36, nrows=18)
  
 # two ways to set all value to 1 
 # with a function

Modified: pkg/raster/man/cell.values.Rd
===================================================================
--- pkg/raster/man/cell.values.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/cell.values.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -38,7 +38,7 @@
 \author{Robert J. Hijmans  \email{r.hijmans at gmail.com}}
 \examples{
 #using a new default raster (1 degree global)
-r <- newRaster()
+r <- raster()
 r <- setValues(r, 1:ncell(r))
 cellValues(r, c(1, 10, 100))
 xy <- cbind(1:20, 20:1)

Modified: pkg/raster/man/change.extent.Rd
===================================================================
--- pkg/raster/man/change.extent.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/change.extent.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -35,7 +35,7 @@
 \author{Robert J. Hijmans \email{r.hijmans at gmail.com}}
 
 \examples{
-	rs <- newRaster()
+	rs <- raster()
 	rs <- setValues(rs, runif(ncell(rs)))
 #	map(rsa)
 	bb1 <- newBbox(-180, -150, 60, 90)

Modified: pkg/raster/man/classes.Rd
===================================================================
--- pkg/raster/man/classes.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/classes.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -33,7 +33,7 @@
  The difference between a RasterStack is that it typically points to several seperate data files on disk, but it could also point to different bands from a single file (or not not point to any file at all)
  
  Apart from with the normal new(" ") method, objects can be created with the following functions (among others)
- newRaster(), RasterFromFile(), StackFromFile(), StackFromRasters(), StackFromFiles()
+ raster(), RasterFromFile(), StackFromFile(), StackFromRasters(), StackFromFiles()
  
  RasterLayer and RasterStack objects can also be created from SpatialPixels* and SpatialGrid* objects from the sp package: asRasterLayer(), asRasterStack()
  Vice versa, Raster* objects can be coerced into a sp type oject with asSpGrid(). You can also use SetAs() 
@@ -65,7 +65,7 @@
 
 
 \section{Objects from the Class}{
-Objects can be created by calls of the form \code{new("RasterLayer")}, but you should normally use functions such as newRaster() and rasterFromFile().
+Objects can be created by calls of the form \code{new("RasterLayer")}, but you should normally use functions such as raster() and rasterFromFile().
 }
 
 \section{Slots}{

Modified: pkg/raster/man/coerce.Rd
===================================================================
--- pkg/raster/man/coerce.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/coerce.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -44,7 +44,7 @@
 \author{ Robert J. Hijmans \email{r.hijmans at gmail.com} }
 
 \examples{ 
-	rs <- newRaster()
+	rs <- raster()
 	rs <- setValues(rs, 1:ncell(rs))
 	sp <- asSpGrid(rs)
 	rs2 <- asRasterLayer(sp) 

Modified: pkg/raster/man/compare.Rd
===================================================================
--- pkg/raster/man/compare.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/compare.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -25,7 +25,7 @@
   
 \author{Robert J. Hijmans  \email{r.hijmans at gmail.com}}
 \examples{
-	r1 <- newRaster()
+	r1 <- raster()
 	r2 <- r1
 	compare(c(r1, r2))
 	r3 <- setRowCol(r1, 10)

Modified: pkg/raster/man/cover.Rd
===================================================================
--- pkg/raster/man/cover.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/cover.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -26,7 +26,7 @@
 \author{ Robert J. Hijmans \email{r.hijmans at gmail.com} }
 
 \examples{
-	r <- newRaster()
+	r <- raster()
 	r1 <- init(r)
 	r2 <- init(r)
 	r3 <- setNA(r2, value=0.5)

Modified: pkg/raster/man/create.raster.Rd
===================================================================
--- pkg/raster/man/create.raster.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/create.raster.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -1,4 +1,5 @@
-\name{raster}
+\name{new RasterLayer}
+\alias{raster}
 \alias{newRaster}
 \alias{rasterFromBbox}
 \alias{rasterFromFile}
@@ -9,9 +10,12 @@
   These functions create new RasterLayer objects, either from scratch or from file.
   The created object does not contain any cell (pixel) values, it only has the parameters that describe it.
   See read* and values() for access to the values
+  
+  newRaster has been replaced by raster, and will be removed soon. 
 }
 \usage{
-	newRaster(xmn = -180, xmx = 180, ymn = -90, ymx = 90, nrows = 180, ncols = 360, projstring = "+proj=longlat +datum=WGS84")
+	raster(xmn = -180, xmx = 180, ymn = -90, ymx = 90, nrows = 180, ncols = 360, projstring = "+proj=longlat +datum=WGS84")
+	newRaster(xmn = -180, xmx = 180, ymn = -90, ymx = 90, nrows = 180, ncols = 360, projstring = "+proj=longlat +datum=WGS84")	
 	rasterFromBbox(bndbox, nrows = 1, ncols = 1)
 	rasterFromFile(filename, values=FALSE, band=1)
 	closeHandle(raster)
@@ -44,7 +48,7 @@
 
 \seealso{  \code{\link[gdal]{rgdal}} }
 \examples{
-  r1 <- newRaster(nrows=1080, ncols=2160)
+  r1 <- raster(nrows=1080, ncols=2160)
   r1
   r2 <- rasterFromFile(system.file("external/test.ag", package="sp"))
   r2

Modified: pkg/raster/man/data.Rd
===================================================================
--- pkg/raster/man/data.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/data.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -27,7 +27,7 @@
 \author{Robert J. Hijmans  \email{r.hijmans at gmail.com}}
 \examples{
 #using a new default raster (1 degree global)
-rs <- newRaster()
+rs <- raster()
 dataContent(rs)
 dataIndices(rs)
 rs <- setValues(rs, 1:ncell(rs))

Modified: pkg/raster/man/get.Rd
===================================================================
--- pkg/raster/man/get.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/get.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -65,7 +65,7 @@
 \author{Robert J. Hijmans  \email{r.hijmans at gmail.com}}
 \examples{
 #using a new default raster (1 degree global)
-rs <- newRaster()
+rs <- raster()
 ncell(rs)
 colFromCell(rs, 10000)
 rowFromCell(rs, 10000)

Modified: pkg/raster/man/mCalc.Rd
===================================================================
--- pkg/raster/man/mCalc.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/mCalc.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -31,7 +31,7 @@
 
 \examples{
 
- r <- newRaster(ncols=36, nrows=18)
+ r <- raster(ncols=36, nrows=18)
  
 # two ways to set all value to 1 
 #1, with a function

Modified: pkg/raster/man/map.Rd
===================================================================
--- pkg/raster/man/map.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/map.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -47,7 +47,7 @@
 \author{ Robert J. Hijmans \email{r.hijmans at gmail.com} }
 
 \examples{ 
-	rs <- newRaster()
+	rs <- raster()
 	rs <- setValues(rs, runif(ncell(rs)))
 	map(rs)
 	rsa <- Aggregate(rs, fact=10, fun=max)

Modified: pkg/raster/man/overlay.Rd
===================================================================
--- pkg/raster/man/overlay.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/overlay.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -35,7 +35,7 @@
 \author{ Robert J. Hijmans \email{r.hijmans at gmail.com} }
 
 \examples{
-	r <- newRaster()
+	r <- raster()
 	r1 <- init(r)
 	r2 <- init(r)
 	r3 <- Overlay(r1, r2, fun=function(x,y){return(x+y)})

Modified: pkg/raster/man/project.Rd
===================================================================
--- pkg/raster/man/project.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/project.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -34,13 +34,11 @@
  
  See projInfo('proj'), projInfo('ellps'), and projInfo('datum') for valud choices. Specify either an ellipsoid, or a datum (datum is ignored if ellipsoid != "")
  
- Many projections take additioanl paramters to the projection name (e.g. lon_0, x_0, y_0). Supply these in the '...'. 
+ Many projections take additioanl paramters to the projection name (see the example below). Supply these after the projection argument. 
  
  You can consult this webpage: \url{http://www.remotesensing.org/geotiff/proj_list/} to find the parameter options and names for your projection.
  
- 
- Projection is performed using the PROJ.4 library accesed through the rgdal package 
- 
+ Projection is performed using the PROJ.4 library accesed through the rgdal package.  Also see ?CRS
 }
 
 \value{
@@ -50,7 +48,7 @@
 
 \examples{
 # create a new (not projected) RasterLayer with cellnumbers as values
-r <- newRaster(-110, -90, 40, 60, ncols=40, nrows=30)
+r <- raster(-110, -90, 40, 60, ncols=40, nrows=30)
 r <- setValues(r, 1:ncell(r))
 # proj.4 projection description
 newproj <- "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100"

Modified: pkg/raster/man/properties.Rd
===================================================================
--- pkg/raster/man/properties.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/properties.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -84,7 +84,7 @@
 \author{Robert J. Hijmans  \email{r.hijmans at gmail.com}}
 \examples{
 #using a new default raster (1 degree global)
-rs <- newRaster()
+rs <- raster()
 ncell(rs)
 ncol(rs)
 nrow(rs)

Modified: pkg/raster/man/raster-package.Rd
===================================================================
--- pkg/raster/man/raster-package.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/raster-package.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -1,6 +1,5 @@
 \name{raster-package}
 \alias{raster-package}
-\alias{raster}
 \docType{package}
 \title{
 Analysis and modeling of geographic (spatial) raster data.

Modified: pkg/raster/man/rasterdistance.Rd
===================================================================
--- pkg/raster/man/rasterdistance.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/rasterdistance.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -19,7 +19,7 @@
 \item{raster = "RasterLayer"}{ ~~describe this method here }
 }}
 \examples{
-r1 <- newRaster(ncol=36,nrow=18)
+r1 <- raster(ncol=36,nrow=18)
 r1[345:355] <- 1
 distmap <- distance(r1) 
 #plot(distmap)

Modified: pkg/raster/man/resample.Rd
===================================================================
--- pkg/raster/man/resample.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/resample.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -26,7 +26,7 @@
 \author{Robert J. Hijmans \email{r.hijmans at gmail.com}}
 
 \examples{
-r1 <- newRaster()
+r1 <- raster()
 
 }
 

Modified: pkg/raster/man/set.Rd
===================================================================
--- pkg/raster/man/set.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/set.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -49,7 +49,7 @@
 \author{ Robert J. Hijmans \email{r.hijmans at gmail.com} }
 
 \examples{ 
-	r <- newRaster()
+	r <- raster()
 	r <- setFilename(r, "c:/test.grd")
 	r <- setRowCol(r, nrows=18, ncols=36) 
 	r <- setRes(r, xres=1/120) 

Modified: pkg/raster/man/setValues.Rd
===================================================================
--- pkg/raster/man/setValues.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/setValues.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -45,7 +45,7 @@
 \author{ Robert J. Hijmans \email{r.hijmans at gmail.com} }
 
 \examples{ 
-	rs <- newRaster()
+	rs <- raster()
 	vals <- 1:ncell(rs)
 	rs <- setValues(rs, vals)
 	rs <- clearValues(rs)

Modified: pkg/raster/man/values.Rd
===================================================================
--- pkg/raster/man/values.Rd	2009-01-30 06:17:34 UTC (rev 220)
+++ pkg/raster/man/values.Rd	2009-01-30 09:16:32 UTC (rev 221)
@@ -42,7 +42,7 @@
 \author{Robert J. Hijmans  \email{r.hijmans at gmail.com}}
 \examples{
 #using a new default raster (1 degree global)
-r <- newRaster()
+r <- raster()
 r <- setValues(r, 1:ncell(r))
 minValue(r)
 maxValue(r)



More information about the Raster-commits mailing list