File: SpatialGridDataFrame.Rd

package info (click to toggle)
r-cran-sp 1:0.9-66-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,696 kB
  • ctags: 123
  • sloc: ansic: 1,475; sh: 6; makefile: 5
file content (53 lines) | stat: -rw-r--r-- 1,887 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\name{SpatialPixelsDataFrame}
\alias{SpatialPixelsDataFrame}
\alias{SpatialGridDataFrame}

\title{ define spatial grid with attribute data }
\description{ defines spatial grid by offset, cell size and dimensions }
\usage{
SpatialPixelsDataFrame(points, data, tolerance = sqrt(.Machine$double.eps), 
		proj4string = CRS(as.character(NA)), round=NULL, fuzz.tol=3)
SpatialGridDataFrame(grid, data, proj4string = CRS(as.character(NA)))
}
\arguments{
	\item{points}{ coordinates, either as numeric matrix or as object of class
		\link{SpatialPoints-class} }
	\item{grid}{ grid topology; object of class \link{GridTopology-class} }
	\item{data}{ data.frame; contains the attribute (actual grid) data }
	\item{tolerance}{ precision up to which extent points should be 
	exactly on a grid }
        \item{round}{default NULL, otherwise a value passed to as the digits argument to \code{round} for setting cell size}
        \item{fuzz.tol}{default 3 - a tuning argument to attempt to detect fuzz - the ratio of row/col coordinates to unique row/col coordinates}
    \item{proj4string}{object of class \link{CRS-class} in the first
	form only used when \code{points} does not inherit from \link{Spatial-class}}
}

\value{ SpatialPixelsDataFrame returns an object of class
\link{SpatialPixelsDataFrame-class}; SpatialGridDataFrame returns an object
of class \link{SpatialGridDataFrame-class}. 
}

\note{ 
SpatialPixels stores grid topology and coordinates of the actual points,
which may be in the form of a subset (set of pixels) of a full grid. To
find out or change this, see \link{fullgrid} and \link{SpatialGrid-class}.
}


\author{ Edzer Pebesma }

\seealso{ 
\link{gridded},
\link{gridded<-},
\link{SpatialGrid},
\link{SpatialGrid-class}
}

\examples{
data(meuse.grid)
m = SpatialPixelsDataFrame(points = meuse.grid[c("x", "y")], data = meuse.grid)
class(m)
summary(m)
}

\keyword{spatial}