R/areaPoly.R

Defines functions areaPoly

Documented in areaPoly

areaPoly<-function(sp.object=NULL){
	### Check to make sure the object is sp-class
		if(class(sp.object)[1]!="SpatialPolygonsDataFrame")
			cat("Incompatible class!")
	area<-sapply(slot(sp.object, "polygons"), slot,"area")
	area
	}

Try the UScensus2000 package in your browser

Any scripts or data that you put into this service are public.

UScensus2000 documentation built on May 2, 2019, 5:13 p.m.