\HeaderA{SpatialPoints}{create objects of class SpatialPoints or SpatialPointsDataFrame}{SpatialPoints}
\aliasA{SpatialPointsDataFrame}{SpatialPoints}{SpatialPointsDataFrame}
\keyword{manip}{SpatialPoints}
\begin{Description}\relax
create objects of class \LinkA{SpatialPoints-class}{SpatialPoints.Rdash.class} or 
\LinkA{SpatialPointsDataFrame-class}{SpatialPointsDataFrame.Rdash.class} from
coordinates, and from coordinates and \code{data.frame}s
\end{Description}
\begin{Usage}
\begin{verbatim} 
SpatialPoints(coords, proj4string=CRS(as.character(NA)))
SpatialPointsDataFrame(coords, data, coords.nrs = numeric(0), 
                proj4string = CRS(as.character(NA)), match.ID = TRUE)

\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{coords}] numeric matrix or data.frame with coordinates 
(each row is a point); in case of SpatialPointsDataFrame an object
of class \LinkA{SpatialPoints-class}{SpatialPoints.Rdash.class} is also allowed
\item[\code{proj4string}] projection string of class \LinkA{CRS-class}{CRS.Rdash.class}
\item[\code{data}] object of class \code{data.frame} or of class
\LinkA{AttributeList-class}{AttributeList.Rdash.class}; the number of rows in \code{data} 
should equal the number of points in the \code{coords} object
\item[\code{coords.nrs}] numeric; if present, records the column positions where
in \code{data} the coordinates were taken from (used by \LinkA{coordinates<-}{coordinates<.Rdash.})
\item[\code{match.ID}] logical; if TRUE AND coords has rownames (i.e., coerced
to a matrix, \code{dimnames(coords)[[2]]} is not NULL), AND data has
row.names (i.e. is a data.frame), then the \code{SpatialPointsDataFrame}
object is formed by matching the row names of both components, leaving
the order of the coordinates in tact. Checks are done to see whether
both row names are sufficiently unique, and all data are matched.
If FALSE, coordinates and data are simply "glued" together. 
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{SpatialPoints} returns an object of class \code{SpatialPoints};
\code{SpatialPointsDataFrame} returns an object of class \code{SpatialPointsDataFrame};
\end{Value}
\begin{SeeAlso}\relax
\LinkA{coordinates}{coordinates}, \LinkA{SpatialPoints-class}{SpatialPoints.Rdash.class},
\LinkA{SpatialPointsDataFrame-class}{SpatialPointsDataFrame.Rdash.class}
\end{SeeAlso}

