[Raster-commits] r188 - pkg/raster/man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Jan 27 08:24:50 CET 2009
Author: rhijmans
Date: 2009-01-27 08:24:50 +0100 (Tue, 27 Jan 2009)
New Revision: 188
Modified:
pkg/raster/man/adjacency.Rd
Log:
Modified: pkg/raster/man/adjacency.Rd
===================================================================
--- pkg/raster/man/adjacency.Rd 2009-01-27 03:33:00 UTC (rev 187)
+++ pkg/raster/man/adjacency.Rd 2009-01-27 07:24:50 UTC (rev 188)
@@ -6,7 +6,7 @@
Identify cells that are adjacent to a set of cells on a grid
}
\usage{
-adjacency(raster, fromCells, toCells, directions, outerMeridianConnect)
+adjacency(raster, fromCells, toCells, directions)
}
\arguments{
@@ -14,7 +14,6 @@
\item{fromCells}{a vector of cell numbers for which adjacent cells should be calculated}
\item{toCells}{a vector of cell numbers from which adjacent cells are selected}
\item{directions}{in how many direction cells should be connected: 4, 8 or 16; or Bishop}
- \item{outerMeridianConnect}{logical value indicating whether the outer columns of the raster should be connected as a cylinder}
}
\details{
@@ -30,14 +29,14 @@
\examples{
rs <- newRaster(nrows=10, ncols=10)
- adj <- adjacency(raster = rs, fromCells = c(1,30,55,72,100), toCells = c(1:ncell(rs)), directions=4, outerMeridianConnect = TRUE)
+ adj <- adjacency(raster = rs, fromCells = c(1,30,55,72,100), toCells = c(1:ncell(rs)), directions=4)
v <- vector(length=ncell(rs))
v[adj[,2]] <- 2
v[adj[,1]] <- 1
rs <- setValues(rs, v)
plot(rs)
- adjbis <- adjacency(raster = rs, fromCells = c(1,30,55,72,100), toCells = c(1:ncell(rs)), direction='Bishop', outerMeridianConnect = TRUE)
+ adjbis <- adjacency(raster = rs, fromCells = c(1,30,55,72,100), toCells = c(1:ncell(rs)), direction='Bishop')
}
\keyword{spatial}
More information about the Raster-commits
mailing list