Learn R Programming

rase (version 0.2-2)

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

See Also

readShapePoly

Examples

Run this code
# 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

Run the code above in your browser using DataLab