\HeaderA{dimensions-methods}{retrieve spatial dimensions from spatial data}{dimensions.Rdash.methods}
\aliasA{dimensions}{dimensions-methods}{dimensions}
\aliasA{dimensions,Spatial-method}{dimensions-methods}{dimensions,Spatial.Rdash.method}
\keyword{methods}{dimensions-methods}
\keyword{methods}{dimensions-methods}
\begin{Description}\relax
retrieves spatial dimensions box from spatial data
\end{Description}
\begin{Usage}
\begin{verbatim}
        dimensions(obj)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{obj}] object deriving from class "Spatial" 
\end{ldescription}
\end{Arguments}
\begin{Value}
two-column matrix; the first column has the minimum,
the second the maximum values; rows represent the spatial
dimensions
\end{Value}
\begin{Section}{Methods}
\describe{
\item[obj = "Spatial"] object deriviving from class "Spatial" 
}
\end{Section}
\begin{Examples}
\begin{ExampleCode}
# just 9 points on a grid:
x <- c(1,1,1,2,2,2,3,3,3)
y <- c(1,2,3,1,2,3,1,2,3)
xy <- cbind(x,y)
S <- SpatialPoints(xy)
dimensions(S)

# data.frame
data(meuse.grid)
coordinates(meuse.grid) <- ~x+y
gridded(meuse.grid) <- TRUE
dimensions(meuse.grid)

\end{ExampleCode}
\end{Examples}

