\HeaderA{SpatialPolygons}{create objects of class SpatialPolygons or SpatialPolygonsDataFrame}{SpatialPolygons}
\aliasA{Polygon}{SpatialPolygons}{Polygon}
\aliasA{Polygons}{SpatialPolygons}{Polygons}
\aliasA{SpatialPolygonsDataFrame}{SpatialPolygons}{SpatialPolygonsDataFrame}
\keyword{manip}{SpatialPolygons}
\begin{Description}\relax
create objects of class \code{SpatialPolygons} or \code{SpatialPolygonsDataFrame} from
lists of \code{Polygons} objects and \code{data.frame}s
\end{Description}
\begin{Usage}
\begin{verbatim} 
Polygon(coords, hole=as.logical(NA))
Polygons(srl, ID)
SpatialPolygons(Srl, pO = 1:length(Srl), proj4string=CRS(as.character(NA)))
SpatialPolygonsDataFrame(Sr, data, match.ID = TRUE)

\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{coords}] 2-column numeric matrix with coordinates; first point (row) should
equal last coordinates (row) 
\item[\code{proj4string}] projection string of class \LinkA{CRS-class}{CRS.Rdash.class}
\item[\code{hole}] logical value for setting ring as hole or not
\item[\code{srl}] list with \LinkA{Polygon-class}{Polygon.Rdash.class} objects
\item[\code{ID}] character vector of length one with identifier
\item[\code{Srl}] list with objects of class \LinkA{Polygons-class}{Polygons.Rdash.class}
\item[\code{pO}] integer vector; plotting order 
\item[\code{Sr}] object of class \LinkA{SpatialPolygons-class}{SpatialPolygons.Rdash.class}
\item[\code{data}] object of class \code{data.frame}; the number of rows in \code{data} should equal the number of \LinkA{Polygons-class}{Polygons.Rdash.class} objects in \code{Sr}
\item[\code{match.ID}] logical: (default TRUE): match SpatialPolygons member Polygons ID slot values with data frame row names, and re-order the data frame rows if necessary
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{Polygon} returns an object of class \code{Polygon};
\code{Polygons} returns an object of class \code{Polygons};
\code{SpatialPolygons} returns object of class \code{SpatialPolygons};
\code{SpatialPolygonsDataFrame} returns object of class \code{SpatialPolygonsDataFrame}
\end{Value}
\begin{SeeAlso}\relax
\LinkA{SpatialPolygons-class}{SpatialPolygons.Rdash.class}, \LinkA{SpatialPolygonsDataFrame-class}{SpatialPolygonsDataFrame.Rdash.class}
\end{SeeAlso}

