The function sp_bbox computes a bounding box; it was copied from the sp package bbox function
Usage
sp_bbox(obj)
Value
two-column matrix; the first column has the minimum, the second the maximum values; rows represent the spatial dimensions
Arguments
obj
object deriving from class "Spatial", or one of classes: "Line", "Lines", "Polygon" or "Polygons", or ANY, which requires obj to be an array with at least two columns