[Raster-commits] r119 - in pkg/raster: R man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Jan 12 04:59:53 CET 2009
Author: rhijmans
Date: 2009-01-12 04:59:53 +0100 (Mon, 12 Jan 2009)
New Revision: 119
Modified:
pkg/raster/R/standard.generic.functions.R
pkg/raster/man/Arith-methods.Rd
pkg/raster/man/map.Rd
Log:
Modified: pkg/raster/R/standard.generic.functions.R
===================================================================
--- pkg/raster/R/standard.generic.functions.R 2009-01-12 01:10:14 UTC (rev 118)
+++ pkg/raster/R/standard.generic.functions.R 2009-01-12 03:59:53 UTC (rev 119)
@@ -141,7 +141,9 @@
if (!missing(drop)) { stop("drop is ignored. It is always set to FALSE") }
if (!missing(j)) { stop("can only set values with a single index (a vector)") }
if (missing(i)) { return(x) }
- return(setRaster(x, values=i))
+ v <- values(i)
+ v[x] <- i
+ return(setRaster(x, v))
}
)
Modified: pkg/raster/man/Arith-methods.Rd
===================================================================
--- pkg/raster/man/Arith-methods.Rd 2009-01-12 01:10:14 UTC (rev 118)
+++ pkg/raster/man/Arith-methods.Rd 2009-01-12 03:59:53 UTC (rev 119)
@@ -6,8 +6,10 @@
\alias{Arith,RasterLayer,RasterLayer-method}
\title{ Methods for arithmic function for RasterLayer objects }
\description{
- The following standard arithmic functions can be used for computations with RasterLayers objects and numeric values
+ The following standard arithmic functions can be used for computations with RasterLayers objects and numeric values.
+\begin{verbatim}
"+", "-", "*", "^", "%%", "%/%", "/"
+\end{verbatim}
}
\section{Note}{
The RasterLayer objects must have either all data in memory or on disk. If the data do not fit into memory you should use the Overlay() function instead.
Modified: pkg/raster/man/map.Rd
===================================================================
--- pkg/raster/man/map.Rd 2009-01-12 01:10:14 UTC (rev 118)
+++ pkg/raster/man/map.Rd 2009-01-12 03:59:53 UTC (rev 119)
@@ -15,16 +15,16 @@
}
\arguments{
- \item{object}{ RasterLayer object}
- \item{index}{ Ignored for RasterLayers. The index of a raster in a RasterStack 1 <= index <= nlayers(rstack) }
- \item{col} {a color palette, i.e. a vector of n contiguous colors such as \code{rainbow}, \code{heat.colors}, and \code{topo.colors}, on one or your own making}
+ \item{object}{RasterLayer object}
+ \item{index}{Ignored for RasterLayers. The index of a raster in a RasterStack 1 <= index <= nlayers(rstack) }
+ \item{col}{A color palette, i.e. a vector of n contiguous colors such as \code{rainbow}, \code{heat.colors}, and \code{topo.colors}, on one or your own making}
\item{subsample}{Logical. If \code{TRUE}, the image is resampled using maxdim}
- \item{maxdim}{ maximum requsted number of pixels in the map display (either vertial or horizontal) }
+ \item{maxdim}{Maximum requested number of pixels in the map display (either vertical or horizontal) }
\item{addbox}{Logical. If \code{TRUE} a box is drawn around the map }
- \item{axes} {see ?image}
- \item{xlab} {see ?image}
- \item{ylab} {see ?image}
- \item{...}{ any argument that can be passed to image.plot(fields) and to image(graphics)}
+ \item{axes}{see ?image}
+ \item{xlab}{see ?image}
+ \item{ylab}{see ?image}
+ \item{...}{Any argument that can be passed to image.plot(fields) and to image(graphics)}
}
\details{
If \code{subsample=FALSE}, then \code{maxdim} is ingored. Subsampled maps are made by skipping rows and columns. This is always
More information about the Raster-commits
mailing list