| 1 |
\name{addAttrToGeom-methods} |
| 2 |
\docType{methods} |
| 3 |
\alias{addAttrToGeom} |
| 4 |
\alias{addAttrToGeom-methods} |
| 5 |
\alias{addAttrToGeom,SpatialPoints,data.frame-method} |
| 6 |
\alias{addAttrToGeom,SpatialMultiPoints,data.frame-method} |
| 7 |
\alias{addAttrToGeom,SpatialGrid,data.frame-method} |
| 8 |
\alias{addAttrToGeom,SpatialPixels,data.frame-method} |
| 9 |
\alias{addAttrToGeom,SpatialPolygons,data.frame-method} |
| 10 |
\alias{addAttrToGeom,SpatialLines,data.frame-method} |
| 11 |
|
| 12 |
\title{ constructs SpatialXxxDataFrame from geometry and attributes} |
| 13 |
\description{ constructs SpatialXxxDataFrame from geometry and attributes} |
| 14 |
\usage{ |
| 15 |
addAttrToGeom(x, y, match.ID, ...) |
| 16 |
} |
| 17 |
\arguments{ |
| 18 |
\item{x}{geometry (locations) of the queries} |
| 19 |
\item{y}{data.frame object with attributes} |
| 20 |
\item{match.ID}{ logical; if TRUE, the IDs of the geometry and of the |
| 21 |
data.frame are matched (possibly swapping records), and an error occurs |
| 22 |
when some IDs do not match } |
| 23 |
\item{...}{(optional) arguments passed to the constructor functions } |
| 24 |
} |
| 25 |
\value{ an object of class XxxDataFrame, where Xxx is the class of x} |
| 26 |
|
| 27 |
\section{Methods}{ |
| 28 |
\describe{ |
| 29 |
\item{x = "SpatialPoints", y = "data.frame"}{ } |
| 30 |
\item{x = "SpatialPixels", y = "data.frame"}{ } |
| 31 |
\item{x = "SpatialGrid", y = "data.frame"}{ } |
| 32 |
\item{x = "SpatialLines", y = "data.frame"}{ } |
| 33 |
\item{x = "SpatialPolygons", y = "data.frame"}{ } |
| 34 |
} |
| 35 |
} |
| 36 |
\author{Edzer Pebesma, \email{[email protected]}} |
| 37 |
\seealso{\link{over}} |
| 38 |
\keyword{methods} |