Learn R Programming

rase (version 0.2-22)

shape.to.rase: Transform a Shapefile into owin.object Format

Description

Transforms a Shapefile in format SpatialPolygonsDataFrame to the format owin.object used by rase.

Usage

shape.to.rase(shape_poly)

Arguments

shape_poly
an object of class SpatialPolygonsDataFrame.

Value

Returns a list of polygons in owin.object format.

See Also

readShapePoly

Examples

Run this code
## Not run: 
# # the Shapefiles for the distributions of the tips of the tree
# data(rase_data, package = 'rase')	
# 
# psophia_shp
# 	
# # Transform the shapefile into the format used by rase
# polygons = shape.to.rase(psophia_shp)
# 	
# # check the structure of the polygons
# polygons
# ## End(Not run)

Run the code above in your browser using DataLab