\HeaderA{SpatialPointsDataFrame-class}{Class "SpatialPointsDataFrame"}{SpatialPointsDataFrame.Rdash.class}
\aliasA{\$.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{.Rdol..SpatialPointsDataFrame}
\aliasA{\$<\Rdash.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{.Rdol.<.Rdash..SpatialPointsDataFrame}
\aliasA{as.data.frame.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{as.data.frame.SpatialPointsDataFrame}
\aliasA{as.SpatialPoints.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{as.SpatialPoints.SpatialPointsDataFrame}
\aliasA{coerce,SpatialPointsDataFrame,AttributeList-method}{SpatialPointsDataFrame-class}{coerce,SpatialPointsDataFrame,AttributeList.Rdash.method}
\aliasA{coerce,SpatialPointsDataFrame,data.frame-method}{SpatialPointsDataFrame-class}{coerce,SpatialPointsDataFrame,data.frame.Rdash.method}
\aliasA{coerce,SpatialPointsDataFrame,SpatialPoints-method}{SpatialPointsDataFrame-class}{coerce,SpatialPointsDataFrame,SpatialPoints.Rdash.method}
\aliasA{dim.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{dim.SpatialPointsDataFrame}
\aliasA{plot.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{plot.SpatialPointsDataFrame}
\aliasA{print.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{print.SpatialPointsDataFrame}
\aliasA{print.summary.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{print.summary.SpatialPointsDataFrame}
\aliasA{show,SpatialPointsDataFrame-method}{SpatialPointsDataFrame-class}{show,SpatialPointsDataFrame.Rdash.method}
\aliasA{ShowSpatialPointsDataFrame}{SpatialPointsDataFrame-class}{ShowSpatialPointsDataFrame}
\aliasA{summary.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{summary.SpatialPointsDataFrame}
\aliasA{[,SpatialPointsDataFrame-method}{SpatialPointsDataFrame-class}{[,SpatialPointsDataFrame.Rdash.method}
\aliasA{[[.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{[[.SpatialPointsDataFrame}
\aliasA{[[<\Rdash.SpatialPointsDataFrame}{SpatialPointsDataFrame-class}{[[<.Rdash..SpatialPointsDataFrame}
\keyword{classes}{SpatialPointsDataFrame-class}
\begin{Description}\relax
Class for spatial attributes that have spatial point locations
\end{Description}
\begin{Section}{Objects from the Class}
Objects can be created by calls of the form \code{coordinates(x) = c("x", "y") }.
or of the form \code{coordinates(x) = xy}; see \LinkA{coordinates}{coordinates}.
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{data}:] Object of class \LinkA{AttributeList-class}{AttributeList.Rdash.class} containing
the attribute data (may or may not contain the coordinates in its columns) 
\item[\code{coords}:] Object of class \code{"matrix"}; the coordinates matrix
(points are rows in the matrix) 
\item[\code{coords.stripped}] Object of class logical; if TRUE, when
the object was created the coordinates were retrieved from the data.frame,
and hence stripped from it; after coercion to data.frame, e.g. by 
as.data.frame(x), coordinates will again be added (as first few columns) 
to the data.frame 
\item[\code{bbox}:] Object of class \code{"matrix"}; bounding box
\item[\code{proj4string}:] Object of class \code{"CRS"}; projection string
}
\end{Section}
\begin{Section}{Extends}
Class \code{"SpatialPoints"}, directly.
Class \code{"Spatial"}, by class \code{"SpatialPoints"}.
\end{Section}
\begin{Section}{Methods}
\describe{
\item[[] \code{signature(x = "SpatialPointsDataFrame")}: subset rows or
columns; in case of row subsetting, the coordinates are also subsetted 
\item[coerce] \code{signature(from = "SpatialPointsDataFrame", to = "data.frame")}:      extracts the AttributeList part, and converts it to a data.frame 
\item[coerce] \code{signature(from = "SpatialPointsDataFrame", to = "AttributeList")}:      extracts the AttributeList part  
\item[coordinates] \code{signature(obj = "SpatialPointsDataFrame")}: retrieves
the coordinates only 
\item[show] \code{signature(object = "SpatialPointsDataFrame")}: print method 
\item[plot] \code{signature(x = "SpatialPointsDataFrame")}: plot points
\item[points] \code{signature(x = "SpatialPointsDataFrame")}: add points to plot
}
\end{Section}
\begin{Note}\relax
\end{Note}
\begin{Author}\relax
Edzer J. Pebesma, \email{e.pebesma@geo.uu.nl}
\end{Author}
\begin{References}\relax
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{coordinates}{coordinates}}, \code{\LinkA{SpatialPoints-class}{SpatialPoints.Rdash.class}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(meuse)
xy = meuse[c("x", "y")] # retrieve coordinates as data.frame
class(meuse)
data(meuse) # reload data.frame
coordinates(meuse) = c("x", "y") # specify column names
class(meuse)
data(meuse) # reload data.frame
coordinates(meuse) = c(1, 2) # specify column names
class(meuse)
data(meuse) # reload data.frame
coordinates(meuse) = ~x+y # formula
class(meuse)
data(meuse) # reload data.frame
coordinates(meuse) = xy   # as data frame
class(meuse)
data(meuse) # reload data.frame
coordinates(meuse) = as.matrix(xy)   # as matrix
meuse$log.zn = log(meuse$zinc)
class(meuse)
dim(meuse)
\end{ExampleCode}
\end{Examples}

